Пример #1
0
 public override void OnInspectorGUI()
 {
     if (GUILayout.Button("Open Shape Editor"))
     {
         ShapeEditorWindow.Edit(_target);
     }
 }
Пример #2
0
        private void OnEnable()
        {
            _target = (ShapeAsset)target;

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