Class SNEditorWindow
Custom node editor window for editing SceneNetworkGraph assets.
public class SNEditorWindow : NodeEditorWindow
Inheritance
Methods
OnOpen(int, int)
Callback that opens the SNEditorWindow when an asset of type SceneNetworkGraph is opened (double-clicked) in the editor.
[OnOpenAsset(-10)]
public static bool OnOpen(int instanceID, int line)
Parameters
| Name | Type | Description |
|---|---|---|
instanceID | int | The instance ID of the clicked asset. |
line | int |
Returns
bool — true if the asset was a valid SceneNetworkGraph and the window was opened; otherwise, false.
Open(NodeGraph)
Opens the given XNode.NodeGraph in an SNEditorWindow.
public static NodeEditorWindow Open(XNode.NodeGraph graph)
Parameters
| Name | Type | Description |
|---|---|---|
graph | XNode.NodeGraph | The graph asset to open. |
Returns
NodeEditorWindow — The opened SNEditorWindow instance, or null if the graph is null.