Add IPresenterOwner to editor Custom Editor for more context and advanced interactions

This commit is contained in:
Wojtek Figat
2023-07-12 12:36:30 +02:00
parent 159beae8ae
commit 15b2d4e041
4 changed files with 37 additions and 9 deletions

View File

@@ -19,7 +19,7 @@ namespace FlaxEditor.Windows.Assets
/// </summary>
/// <seealso cref="Prefab" />
/// <seealso cref="FlaxEditor.Windows.Assets.AssetEditorWindow" />
public sealed partial class PrefabWindow : AssetEditorWindowBase<Prefab>
public sealed partial class PrefabWindow : AssetEditorWindowBase<Prefab>, IPresenterOwner
{
private readonly SplitPanel _split1;
private readonly SplitPanel _split2;
@@ -520,5 +520,8 @@ namespace FlaxEditor.Windows.Assets
base.OnDestroy();
}
/// <inheritdoc />
public EditorViewport PresenterViewport => _viewport;
}
}