Various improvements for Editor

This commit is contained in:
Wojtek Figat
2022-05-06 17:14:25 +02:00
parent 3766488114
commit 90906baae2
7 changed files with 49 additions and 36 deletions

View File

@@ -41,6 +41,11 @@ namespace FlaxEditor.Surface
/// </summary>
IEnumerable<ScriptType> NewParameterTypes { get; }
/// <summary>
/// Event called when surface gets loaded (eg. after opening the window).
/// </summary>
event Action SurfaceLoaded;
/// <summary>
/// Called when parameter rename undo action is performed.
/// </summary>
@@ -974,6 +979,7 @@ namespace FlaxEditor.Surface
_showWholeGraphOnLoad = false;
_surface.ShowWholeGraph();
}
SurfaceLoaded?.Invoke();
}
else if (_refreshPropertiesOnLoad && _asset.IsLoaded)
{
@@ -1023,6 +1029,9 @@ namespace FlaxEditor.Surface
/// <inheritdoc />
public abstract IEnumerable<ScriptType> NewParameterTypes { get; }
/// <inheritdoc />
public event Action SurfaceLoaded;
/// <inheritdoc />
public virtual void OnParamRenameUndo()
{