private void OnEnable()
 {
     m_SettingsEditor = new EmbeddeAssetEditor <NoiseSettings>(
         SerializedPropertyHelper.PropertyName(() => Target.m_Definition), this);
     m_SettingsEditor.OnChanged = (NoiseSettings noise) =>
     {
         UnityEditorInternal.InternalEditorUtility.RepaintAllViews();
     };
 }
 private void OnEnable()
 {
     m_BlendsEditor = new EmbeddeAssetEditor <CinemachineBlenderSettings>(
         FieldPath(x => x.m_CustomBlends), this);
     m_BlendsEditor.OnChanged = (CinemachineBlenderSettings b) =>
     {
         UnityEditorInternal.InternalEditorUtility.RepaintAllViews();
     };
 }
 private void OnEnable()
 {
     m_SettingsEditor = new EmbeddeAssetEditor <CinemachineBlenderSettings>(
         SerializedPropertyHelper.PropertyName(() => Target.m_CustomBlends), this);
     m_SettingsEditor.OnChanged = (CinemachineBlenderSettings b) =>
     {
         UnityEditorInternal.InternalEditorUtility.RepaintAllViews();
     };
 }
Ejemplo n.º 4
0
 private void OnEnable()
 {
     m_BlendsEditor = new EmbeddeAssetEditor <CinemachineBlenderSettings>(
         FieldPath(x => x.m_CustomBlends), this);
     m_BlendsEditor.OnChanged = (CinemachineBlenderSettings b) =>
     {
         InspectorUtility.RepaintGameView();
     };
 }
 protected override void OnEnable()
 {
     base.OnEnable();
     m_BlendsEditor = new EmbeddeAssetEditor <CinemachineBlenderSettings>(
         FieldPath(x => x.m_CustomBlends), this);
     m_BlendsEditor.OnChanged      = b => { InternalEditorUtility.RepaintAllViews(); };
     m_BlendsEditor.OnCreateEditor = ed =>
     {
         var editor = ed as CinemachineBlenderSettingsEditor;
         if (editor != null)
         {
             editor.GetAllVirtualCameras = () => { return(Target.ChildCameras); }
         }
         ;
     };
     mChildList = null;
 }
Ejemplo n.º 6
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;
 }
 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;
     mInstructionList = null;
 }