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
- Packman: "My Assets" filters section doesn't rescale on filter sections collapse
- "DrawDepthNormalPrepass" exceptions are thrown in Editor when Ctrl key is held with specific renderer settings
- Script file name changes do not display in Editor when Compiler errors are present
- Sprites are not rotating with bones when the Sprite type is Unlit
- Crash on TransferField_NonArray<YAMLRead,Converter_String> when opening a specific project
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