Skip to main content

Class SNEditorWindow

Custom node editor window for editing SceneNetworkGraph assets.

public class SNEditorWindow : NodeEditorWindow

Inheritance​

NodeEditorWindow→SNEditorWindow

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​

NameTypeDescription
instanceIDintThe instance ID of the clicked asset.
lineint

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​

NameTypeDescription
graphXNode.NodeGraphThe graph asset to open.

Returns​

NodeEditorWindow — The opened SNEditorWindow instance, or null if the graph is null.

  • Methods
    • OnOpen(int, int)
    • Open(NodeGraph)