Class EventUnit<TArgs>
Inheritance
EventUnit<TArgs>
Syntax
[SerializationVersion("A", new Type[]{})]
public abstract class EventUnit<TArgs> : Unit, IEventUnit, IUnit, IGraphElementWithDebugData, IGraphEventListener, IGraphElementWithData, IGraphElement, IGraphItem, INotifiedCollectionItem, IDisposable, IPrewarmable, IAotStubbable, IIdentifiable, IGraphEventHandler<TArgs>
Type Parameters
Properties
coroutine
Run this event in a coroutine, enabling asynchronous flow like wait units.
Declaration
[Serialize]
[Inspectable]
[InspectorExpandTooltip]
public bool coroutine { get; set; }
Property Value
Implements
register
Declaration
[DoNotSerialize]
protected abstract bool register { get; }
Property Value
trigger
Declaration
[DoNotSerialize]
public ControlOutput trigger { get; }
Property Value
Methods
AssignArguments(Flow, TArgs)
Declaration
protected virtual void AssignArguments(Flow flow, TArgs args)
Parameters
Type |
Name |
Description |
Flow |
flow |
|
TArgs |
args |
|
Declaration
protected static bool CompareNames(Flow flow, ValueInput namePort, string calledName)
Parameters
Returns
CreateData()
Declaration
public virtual IGraphElementData CreateData()
Returns
Implements
Definition()
Declaration
protected override void Definition()
Overrides
GetHook(GraphReference)
Declaration
public virtual EventHook GetHook(GraphReference reference)
Parameters
Returns
Implements
IsListening(GraphPointer)
Declaration
public bool IsListening(GraphPointer pointer)
Parameters
Returns
Implements
ShouldTrigger(Flow, TArgs)
Declaration
protected virtual bool ShouldTrigger(Flow flow, TArgs args)
Parameters
Type |
Name |
Description |
Flow |
flow |
|
TArgs |
args |
|
Returns
StartListening(GraphStack)
Declaration
public virtual void StartListening(GraphStack stack)
Parameters
Implements
StopListening(GraphStack)
Declaration
public virtual void StopListening(GraphStack stack)
Parameters
Implements
Trigger(GraphReference, TArgs)
Declaration
public void Trigger(GraphReference reference, TArgs args)
Parameters
Implements
Uninstantiate(GraphReference)
Declaration
public override void Uninstantiate(GraphReference instance)
Parameters
Overrides
Implements
Extension Methods