Class OnDestinationReached
Called when the nav mesh agent comes within a certain threshold of its destination.
Inheritance
OnDestinationReached
Inherited Members
Namespace: Unity.VisualScripting
Syntax
[UnitCategory("Events/Navigation")]
public sealed class OnDestinationReached : MachineEventUnit<EmptyEventArgs>, IEventUnit, IUnit, IGraphElementWithDebugData, IGraphEventListener, IGraphElementWithData, IGraphElement, IGraphItem, INotifiedCollectionItem, IDisposable, IPrewarmable, IAotStubbable, IIdentifiable, IGraphEventHandler<EmptyEventArgs>
Properties
hookName
Declaration
protected override string hookName { get; }
Property Value
Type | Description |
---|---|
String |
Overrides
Unity.VisualScripting.MachineEventUnit<Unity.VisualScripting.EmptyEventArgs>.hookName
requireSuccess
Whether the event should only trigger when the path is not partial or invalid.
Declaration
[DoNotSerialize]
public ValueInput requireSuccess { get; }
Property Value
Type | Description |
---|---|
ValueInput |
threshold
The threshold for the remaining distance.
Declaration
[DoNotSerialize]
public ValueInput threshold { get; }
Property Value
Type | Description |
---|---|
ValueInput |
Methods
Definition()
Declaration
protected override void Definition()
Overrides
Unity.VisualScripting.EventUnit<Unity.VisualScripting.EmptyEventArgs>.Definition()
ShouldTrigger(Flow, EmptyEventArgs)
Declaration
protected override bool ShouldTrigger(Flow flow, EmptyEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
Flow | flow | |
EmptyEventArgs | args |
Returns
Type | Description |
---|---|
Boolean |
Overrides
Unity.VisualScripting.EventUnit<Unity.VisualScripting.EmptyEventArgs>.ShouldTrigger(Unity.VisualScripting.Flow, Unity.VisualScripting.EmptyEventArgs)