Photon Quantum 2.1.1

Public Member Functions | List of all members
Quantum.ISignalOnNavMeshSearchFailed Interface Reference

Signal is fired when the agent could not find a path in the agent update after using NavMeshSteeringAgent.SetTarget(Core.FrameBase, FPVector2, NavMesh, bool) More...

Inherits Quantum.ISignal.

Public Member Functions

void OnNavMeshSearchFailed (Frame f, EntityRef entity, ref bool resetAgent)
 

Detailed Description

Signal is fired when the agent could not find a path in the agent update after using NavMeshSteeringAgent.SetTarget(Core.FrameBase, FPVector2, NavMesh, bool)

Requires enabled Navigation.Config.EnableNavigationCallbacks in SimulationConfig.Navigation.

Member Function Documentation

◆ OnNavMeshSearchFailed()

void Quantum.ISignalOnNavMeshSearchFailed.OnNavMeshSearchFailed ( Frame  f,
EntityRef  entity,
ref bool  resetAgent 
)
Parameters
fCurrent frame object
entityThe entity the navmesh agent component belongs to
resetAgentSet this to true if the agent should reset its internal state (default is true).