Table of Contents

Class FlowGraphEditorWindow

Namespace
Ceres.Editor.Flow
Assembly
Ceres.Flow.Editor.dll
public class FlowGraphEditorWindow : CeresGraphEditorWindow<IFlowGraphContainer, FlowGraphEditorWindow>, IHasCustomMenu
Inheritance
FlowGraphEditorWindow
Implements
IHasCustomMenu
Inherited Members

Constructors

FlowGraphEditorWindow()

public FlowGraphEditorWindow()

Properties

DebugState

Editor debug state

public FlowGraphDebugState DebugState { get; }

Property Value

FlowGraphDebugState

EditorObject

Editor view model

public FlowGraphEditorObject EditorObject { get; }

Property Value

FlowGraphEditorObject

GraphIndex

Editing graph view index

public int GraphIndex { get; }

Property Value

int

Methods

CanCreateFunctionSubGraph()

public bool CanCreateFunctionSubGraph()

Returns

bool

CreateFunctionSubGraph()

Create a new subGraph to present custom function

public void CreateFunctionSubGraph()

GetGraphView()

Get current editing graph view

public FlowGraphView GetGraphView()

Returns

FlowGraphView

GetOrCreateGraphView(int)

Get or create graph view by id

public FlowGraphView GetOrCreateGraphView(int id)

Parameters

id int

Returns

FlowGraphView

OnDisable()

protected override void OnDisable()

OnInitialize()

Initialize graph view in this stage

protected override void OnInitialize()

OnReloadGraphView()

Construct graph view after reloading

protected override void OnReloadGraphView()

OpenSubgraphView(string)

Open subGraph view by name

public void OpenSubgraphView(string subGraphName)

Parameters

subGraphName string

RemoveSubgraph(string)

Remove subGraph and update view

public void RemoveSubgraph(string guid)

Parameters

guid string

RenameSubgraph(string, string)

Rename subGraph and update view

public void RenameSubgraph(string guid, string newName)

Parameters

guid string
newName string

ResolveFunctionInputParameters(LocalFunction)

Resolve custom function input parameters

public CustomFunctionInputParameter[] ResolveFunctionInputParameters(LocalFunction localFunction)

Parameters

localFunction LocalFunction

Returns

CustomFunctionInputParameter[]

ResolveFunctionTypes(LocalFunction)

Resolve custom function parameter types

public (Type, Type[]) ResolveFunctionTypes(LocalFunction localFunction)

Parameters

localFunction LocalFunction

Returns

(Type, Type[])

SaveGraphData()

Save current editing flow graph

public void SaveGraphData()