Class ExecutionContext
Flow graph execution context
public class ExecutionContext : IDisposable
- Inheritance
-
objectExecutionContext
Constructors
ExecutionContext()
protected ExecutionContext()
Properties
Context
Execution source context object
public UObject Context { get; }
Property Value
- UObject
Graph
Execution owner graph
public FlowGraph Graph { get; }
Property Value
Methods
Dispose()
public void Dispose()
Forward(ExecutableNode)
Execute node in forward path
public UniTask Forward(ExecutableNode node)
Parameters
nodeExecutableNode
Returns
- UniTask
GetEvent()
Get source
public EventBase GetEvent()
Returns
- EventBase
GetEventT<T>()
Get source
public T GetEventT<T>() where T : EventBase<T>, new()
Returns
- T
Type Parameters
T
GetPooled(UObject, FlowGraph, EventBase)
public static ExecutionContext GetPooled(UObject context, FlowGraph graph, EventBase evt = null)
Parameters
contextUObjectgraphFlowGraphevtEventBase
Returns
SetNext(ExecutableNode)
Set execution flow next node
public void SetNext(ExecutableNode node)
Parameters
nodeExecutableNode