Class BoltUnityEvent
Called when a UnityEvent points to TriggerUnityEvent.
Inheritance
BoltUnityEvent
Inherited Members
Namespace: Unity.VisualScripting
Syntax
[UnitCategory("Events")]
[UnitTitle("UnityEvent")]
[UnitOrder(2)]
public sealed class BoltUnityEvent : MachineEventUnit<string>, IEventUnit, IUnit, IGraphElementWithDebugData, IGraphEventListener, IGraphElementWithData, IGraphElement, IGraphItem, INotifiedCollectionItem, IDisposable, IPrewarmable, IAotStubbable, IIdentifiable, IGraphEventHandler<string>
Properties
hookName
Declaration
protected override string hookName { get; }
Property Value
| Type | Description |
|---|---|
| String |
Overrides
Unity.VisualScripting.MachineEventUnit<System.String>.hookName
name
The name of the event. The event will only trigger if this value is equal to the string parameter passed in the UnityEvent.
Declaration
[DoNotSerialize]
public ValueInput name { get; }
Property Value
| Type | Description |
|---|---|
| ValueInput |
Methods
Definition()
Declaration
protected override void Definition()
Overrides
Unity.VisualScripting.EventUnit<System.String>.Definition()
ShouldTrigger(Flow, String)
Declaration
protected override bool ShouldTrigger(Flow flow, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| Flow | flow | |
| String | name |
Returns
| Type | Description |
|---|---|
| Boolean |
Overrides
Unity.VisualScripting.EventUnit<System.String>.ShouldTrigger(Unity.VisualScripting.Flow, System.String)