Class EventUnit<TArgs>
Inheritance
EventUnit<TArgs>
Assembly: Unity.VisualScripting.Flow.dll
Syntax
[SerializationVersion("A", new Type[] { })]
public abstract class EventUnit<TArgs> : Unit, IEventUnit, IUnit, IGraphElementWithDebugData, IGraphEventListener, IGraphElementWithData, IGraphElement, IGraphItem, INotifiedCollectionItem, IDisposable, IPrewarmable, IAotStubbable, IIdentifiable, IAnalyticsIdentifiable, IGraphEventHandler<TArgs>
Type Parameters
Properties
coroutine
Run this event in a coroutine, enabling asynchronous flow like wait nodes.
Declaration
[Serialize]
[Inspectable]
[InspectorExpandTooltip]
public bool coroutine { get; set; }
Property Value
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
Definition()
Declaration
protected override void Definition()
Overrides
GetHook(GraphReference)
Declaration
public virtual EventHook GetHook(GraphReference reference)
Parameters
Returns
IsListening(GraphPointer)
Declaration
public bool IsListening(GraphPointer pointer)
Parameters
Returns
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
StopListening(GraphStack)
Declaration
public virtual void StopListening(GraphStack stack)
Parameters
Trigger(GraphReference, TArgs)
Declaration
public void Trigger(GraphReference reference, TArgs args)
Parameters
Uninstantiate(GraphReference)
Declaration
public override void Uninstantiate(GraphReference instance)
Parameters
Overrides
Implements
Extension Methods