Class OnDestinationReached
Called when the nav mesh agent comes within a certain threshold of its destination.
Inheritance
OnDestinationReached
Inherited Members
Namespace: Ludiq.Bolt
Syntax
[UnitCategory("Events/Navigation")]
public sealed class OnDestinationReached : ComponentEventUnit<EmptyEventArgs>, ISerializationCallbackReceiver, IEventHandlerUnit, IEventUnit, IBehaviourUnit, IUnit, IGraphElementWithDebugData, IBehaviourGraphElement, IGraphElementWithData, IGraphElement, IGraphChild, IObservableDisposable, IDisposable, INotifiedCollectionChild<IGraph>, ICollectionChild<IGraph>, IPrewarmable, IIdentifiable, INotifyPropertyChanged, IGraphEventHandler<EmptyEventArgs>
Properties
hookID
Declaration
public override EventHookID hookID { get; }
Property Value
Type | Description |
---|---|
EventHookID |
Overrides
Ludiq.Bolt.EventHandlerUnit<Ludiq.Bolt.EmptyEventArgs>.hookID
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
Ludiq.Bolt.EventHandlerUnit<Ludiq.Bolt.EmptyEventArgs>.Definition()
ShouldInvoke(Flow, EmptyEventArgs)
Declaration
protected override bool ShouldInvoke(Flow flow, EmptyEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
Flow | flow | |
EmptyEventArgs | args |
Returns
Type | Description |
---|---|
Boolean |
Overrides
Ludiq.Bolt.EventHandlerUnit<Ludiq.Bolt.EmptyEventArgs>.ShouldInvoke(Ludiq.Bolt.Flow, Ludiq.Bolt.EmptyEventArgs)