UnityEngine.Camera.ResetWorldToCameraMatrix C# (CSharp) Метод

ResetWorldToCameraMatrix() публичный Метод

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

public ResetWorldToCameraMatrix ( ) : void
Результат void
        public void ResetWorldToCameraMatrix()
        {
            INTERNAL_CALL_ResetWorldToCameraMatrix(this);
        }

Usage Example

 // 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