Esempio n. 1
0
 protected override void OnEnable()
 {
     base.OnEnable();
     m_BlendsEditor = new EmbeddeAssetEditor <CinemachineBlenderSettings>(
         SerializedPropertyHelper.PropertyName(() => Target.m_CustomBlends), this);
     m_BlendsEditor.OnChanged = (CinemachineBlenderSettings b) =>
     {
         UnityEditorInternal.InternalEditorUtility.RepaintAllViews();
     };
     m_BlendsEditor.OnCreateEditor = (UnityEditor.Editor ed) =>
     {
         CinemachineBlenderSettingsEditor editor = ed as CinemachineBlenderSettingsEditor;
         if (editor != null)
         {
             editor.GetAllVirtualCameras = () => { return(Target.ChildCameras); }
         }
         ;
     };
     mChildList = null;
 }
Esempio n. 2
0
 protected override void OnEnable()
 {
     base.OnEnable();
     m_BlendsEditor = new EmbeddeAssetEditor <CinemachineBlenderSettings>(
         FieldPath(x => x.m_CustomBlends), this);
     m_BlendsEditor.OnChanged = (CinemachineBlenderSettings b) =>
     {
         InspectorUtility.RepaintGameView();
     };
     m_BlendsEditor.OnCreateEditor = (UnityEditor.Editor ed) =>
     {
         CinemachineBlenderSettingsEditor editor = ed as CinemachineBlenderSettingsEditor;
         if (editor != null)
         {
             editor.GetAllVirtualCameras = () => { return(Target.ChildCameras); }
         }
         ;
     };
     mChildList = null;
 }