UnityEngine.Camera.ResetWorldToCameraMatrix C# (CSharp) Method

ResetWorldToCameraMatrix() public method

Make the rendering position reflect the camera's position in the scene.

public ResetWorldToCameraMatrix ( ) : void
return void
        public void ResetWorldToCameraMatrix()
        {
            INTERNAL_CALL_ResetWorldToCameraMatrix(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::ResetWorldToCameraMatrix
Camera