Answers for "how to move clipping planes C# in unity"

C#
0

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;
Posted by: Guest on May-30-2020

Code answers related to "how to move clipping planes C# in unity"

C# Answers by Framework

Browse Popular Code Answers by Language