public static void Edit(ShapeAsset asset) { ShapeEditorWindow current = GetWindow <ShapeEditorWindow>("Shape Editor"); current._asset = asset; current.Show(); current.Reset(); }
private void OnEnable() { _target = (ShapeAsset)target; if (ShapeEditorWindow.IsActive) { ShapeEditorWindow.Edit(_target); } }