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
- Warning of an unknown Script missing is logged when selecting VFX in Play Mode
- Vertical and horizontal scrollbars appear and disappear when dragging an attribute to a different position within the Shader Graph Hierarchy
- AudioSource.PlayDelayed() does not work with Audio Random Containers
- Compatible with the VFX Graph Shader Graph can't be dragged and dropped into the "Output" block from the Project window
- [Silicon] Freeze/crash on BrotliDecoderDecompressStream when using System.IO.Compression.BrotliDecoder.TryDecompress
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