Various improvements for Editor
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user