Пример #1
0
        static internal void Init()
        {
            GlyphEditorWindow window = GetWindow <GlyphEditorWindow>(false, "Glyph Editor");

            window.Show();
            window.autoRepaintOnSceneChange = true;
//			window.CameraInit();
        }
Пример #2
0
 public override void OnPreviewSettings()
 {
     if (GUILayout.Button("Show Editor", EditorStyles.whiteMiniLabel)) //toolbarButton)){//
     {
         GlyphEditorWindow.Init();                                     //Create window
         if (GlyphEditorWindow.currentWindow != null)
         {
             GlyphEditorWindow.currentWindow.glyphEditor = this;
         }
     }
 }
Пример #3
0
 void OnEnable()
 {
     if (Undo.undoRedoPerformed != this.OnUndoRedo)
     {
         Undo.undoRedoPerformed += this.OnUndoRedo;
     }
     if (glyphCamera == null)
     {
         CameraInit();
     }
     currentWindow = this;
 }