UnityEngine.Camera.ResetProjectionMatrix C# (CSharp) Method

ResetProjectionMatrix() public method

Make the projection reflect normal camera's parameters.

public ResetProjectionMatrix ( ) : void
return void
        public void ResetProjectionMatrix()
        {
            INTERNAL_CALL_ResetProjectionMatrix(this);
        }

Usage Example

コード例 #1
0
 // callback to be called before any culling
 public void PreCullAdjustFOV(Camera cam)
 {
     if (cam == thisCamera)
     {
         cam.fieldOfView = 70;
         //These are needed for the FOV change to take effect.
         cam.ResetWorldToCameraMatrix();
         cam.ResetProjectionMatrix();
     }
 }
All Usage Examples Of UnityEngine.Camera::ResetProjectionMatrix
Camera