static internal void Init() { GlyphEditorWindow window = GetWindow <GlyphEditorWindow>(false, "Glyph Editor"); window.Show(); window.autoRepaintOnSceneChange = true; // window.CameraInit(); }
public override void OnPreviewSettings() { if (GUILayout.Button("Show Editor", EditorStyles.whiteMiniLabel)) //toolbarButton)){// { GlyphEditorWindow.Init(); //Create window if (GlyphEditorWindow.currentWindow != null) { GlyphEditorWindow.currentWindow.glyphEditor = this; } } }
void OnEnable() { if (Undo.undoRedoPerformed != this.OnUndoRedo) { Undo.undoRedoPerformed += this.OnUndoRedo; } if (glyphCamera == null) { CameraInit(); } currentWindow = this; }