Esempio n. 1
0
 public override void OnInspectorGUI()
 {
     if (GUILayout.Button("Open Shape Editor"))
     {
         ShapeEditorWindow.Edit(_target);
     }
 }
Esempio n. 2
0
        public static void Edit(ShapeAsset asset)
        {
            ShapeEditorWindow current = GetWindow <ShapeEditorWindow>("Shape Editor");

            current._asset = asset;
            current.Show();
            current.Reset();
        }
Esempio n. 3
0
        private void OnEnable()
        {
            _target = (ShapeAsset)target;

            if (ShapeEditorWindow.IsActive)
            {
                ShapeEditorWindow.Edit(_target);
            }
        }