how to NavMeshAgent path stop return start position!!!
i have NavMeshAgent path i want in navigation over to return start position
but position.y can not modify

how to NavMeshAgent path stop return start position!!!
i have NavMeshAgent path i want in navigation over to return start position
but position.y can not modify

I thought I read somthing about disabling the navmeshagent’s updateposition.
Disable this, Set the Destination and the gameobjects Transform.position to the startposition and then re-enable the update position.
I am not sure if this will work but I think it is worth trying.
(I whould have tested it for you if I wasnt bussy with my own code right now)
Call “Warp” on the NavMeshAgent with the new position. See here: Unity Docs
It will look something like this:
NavMeshAgent agent = GetComponent<NavMeshAgent>();
agent.Warp(myStartPosition);