Add SceneGraphNode.OnContextMenu for customizations

This commit is contained in:
Wojtek Figat
2021-02-02 12:51:36 +01:00
parent 23652d1bc5
commit c00b32364a
2 changed files with 26 additions and 0 deletions

View File

@@ -317,6 +317,13 @@ namespace FlaxEditor.SceneGraph
{
}
/// <summary>
/// Called when scene tree window wants to show the context menu. Allows to add custom options.
/// </summary>
public virtual void OnContextMenu(FlaxEditor.GUI.ContextMenu.ContextMenu contextMenu)
{
}
/// <summary>
/// The scene graph node state container. Used for Editor undo actions (eg. restoring deleted node).
/// </summary>