Search Issue Tracker
By Design
Votes
0
Found in
2023.2.0b6
Issue ID
UUM-47274
Regression
No
No way to get the remaining distance the frame a new destination isSet
|Checking agent.remainingDistance <= agent.stoppingDistance; returns false if you have set the destination that frame as remainingDistance does not update until a frame later. This caused issues when debugging my code and triggered actions sooner than I would have expected. Would be nice for a function like: UpdateNavmeshDestination() to avoid this.|
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
Resolution Note:
There is a one or more frame delay in SetDestination, and this is by design.
https://docs.unity3d.com/ScriptReference/AI.NavMeshAgent.SetDestination.html
https://docs.unity3d.com/ScriptReference/AI.NavMeshAgent-destination.html