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); }
//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)); }