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
- Sprite Masks affect Sprite Renderers outside their range when a Light2D is present with specific Target Sorting Layers selected
- URP Lens Flare is rendered in the wrong position when Render Graph Compatibility Mode is enabled and Render Scaling is not 0
- Editor crashes on DrvPresentBuffers when loading RenderDoc while using OpenGLES 3.0 or OpenGLES 2.0 Graphics API
- [Test Runner] Incorrect name under Window > Panel after project restart
- [iOS] Crash when using fallback fonts created at runtime
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