pabrams
1
Q:

how to move clipping planes C# in unity

 // creating by instantiating prefab :
 GameObject cameraObject = (GameObject)Instantiate( myCameraPrefab );
 Camera myCamera = cameraObject.GetComponent< Camera >();
 
 // creating by adding component :
 Camera myCamera = gameObject.AddComponent< Camera >();
 
 // now you have a reference pointer to the camera, modify properties :
 myCamera.nearClipPlane = 0.05f;
 myCamera.farClipPlane = 100f;
0

New to Communities?

Join the community