Class BoltUnityEvent
Called when a UnityEvent points to TriggerUnityEvent.
Inheritance
BoltUnityEvent
Implements
Inherited Members
Namespace: Unity.VisualScripting
Assembly: Unity.VisualScripting.Flow.dll
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, IAnalyticsIdentifiable, IGraphEventHandler<string>
Properties
hookName
Declaration
protected override string hookName { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
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
ShouldTrigger(Flow, string)
Declaration
protected override bool ShouldTrigger(Flow flow, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| Flow | flow | |
| string | name |
Returns
| Type | Description |
|---|---|
| bool |