Camera.ResetWorldToCameraMatrix 重设世界转相机矩阵
function ResetWorldToCameraMatrix () : void
Description描述
Make the rendering position reflect the camera's position in the scene.
在场景中让渲染位置反映相机的位置。
Call this to end the effect of setting worldToCameraMatrix.
调用这个结束worldToCameraMatrix设置的效果。
C#
JavaScript
using UnityEngine;using System.Collections;public class example : MonoBehaviour {public void Awake() {camera.ResetWorldToCameraMatrix();}}
camera.ResetWorldToCameraMatrix();