コード例 #1
0
        public static void Edit(ShapeAsset asset)
        {
            ShapeEditorWindow current = GetWindow <ShapeEditorWindow>("Shape Editor");

            current._asset = asset;
            current.Show();
            current.Reset();
        }
コード例 #2
0
        private void OnEnable()
        {
            _target = (ShapeAsset)target;

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