Class EventUnit<TArgs>
Inherited Members
Namespace: Unity.VisualScripting
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
Name | Description |
---|---|
TArgs |
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
Type | Description |
---|---|
Boolean |
Implements
register
Declaration
[DoNotSerialize]
protected abstract bool register { get; }
Property Value
Type | Description |
---|---|
Boolean |
trigger
Declaration
[DoNotSerialize]
public ControlOutput trigger { get; }
Property Value
Type | Description |
---|---|
ControlOutput |
Methods
AssignArguments(Flow, TArgs)
Declaration
protected virtual void AssignArguments(Flow flow, TArgs args)
Parameters
Type | Name | Description |
---|---|---|
Flow | flow | |
TArgs | args |
CompareNames(Flow, ValueInput, String)
Declaration
protected static bool CompareNames(Flow flow, ValueInput namePort, string calledName)
Parameters
Type | Name | Description |
---|---|---|
Flow | flow | |
ValueInput | namePort | |
String | calledName |
Returns
Type | Description |
---|---|
Boolean |
CreateData()
Declaration
public virtual IGraphElementData CreateData()
Returns
Type | Description |
---|---|
IGraphElementData |
Implements
Definition()
Declaration
protected override void Definition()
Overrides
GetHook(GraphReference)
Declaration
public virtual EventHook GetHook(GraphReference reference)
Parameters
Type | Name | Description |
---|---|---|
GraphReference | reference |
Returns
Type | Description |
---|---|
EventHook |
Implements
IsListening(GraphPointer)
Declaration
public bool IsListening(GraphPointer pointer)
Parameters
Type | Name | Description |
---|---|---|
GraphPointer | pointer |
Returns
Type | Description |
---|---|
Boolean |
Implements
ShouldTrigger(Flow, TArgs)
Declaration
protected virtual bool ShouldTrigger(Flow flow, TArgs args)
Parameters
Type | Name | Description |
---|---|---|
Flow | flow | |
TArgs | args |
Returns
Type | Description |
---|---|
Boolean |
StartListening(GraphStack)
Declaration
public virtual void StartListening(GraphStack stack)
Parameters
Type | Name | Description |
---|---|---|
GraphStack | stack |
Implements
StopListening(GraphStack)
Declaration
public virtual void StopListening(GraphStack stack)
Parameters
Type | Name | Description |
---|---|---|
GraphStack | stack |
Implements
Trigger(GraphReference, TArgs)
Declaration
public void Trigger(GraphReference reference, TArgs args)
Parameters
Type | Name | Description |
---|---|---|
GraphReference | reference | |
TArgs | args |
Implements
Uninstantiate(GraphReference)
Declaration
public override void Uninstantiate(GraphReference instance)
Parameters
Type | Name | Description |
---|---|---|
GraphReference | instance |