コード例 #1
0
        public override void OnInspectorGUI()
        {
            CinemachineTrack cinemachineTrack = (CinemachineTrack)target;

            if (!cinemachineTrack.Brain)
            {
                EditorGUILayout.HelpBox("No Brain Set.", MessageType.Error);
            }
            base.OnInspectorGUI();
            cinemachineTrack.Priority = EditorGUILayout.IntField("Priority", cinemachineTrack.Priority);
        }
コード例 #2
0
 //Get a RenderTexture of this camera with specified width and height.
 public Texture2D GetRenderTexture(CinemachineVirtualCameraBase virtualCamera, int width, int height)
 {
     return(CinemachineTrack.GetThumbnail(virtualCamera, width, height));
 }