Exemplo n.º 1
0
        public static void Edit(ShapeAsset asset)
        {
            ShapeEditorWindow current = GetWindow <ShapeEditorWindow>("Shape Editor");

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

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