Turn NavMeshAgent.currentOffMeshLinkData into NavMeshLinkData

How do I get the current NavMeshLink data from the NavMeshAgent? Currently it doesn’t seem possible.

Only thing I’ve been able to find on the subject is this question on how to solve the issue (with no answer).

1 Like

Seems that the answer lies in setting the NavMeshLinkInstance.owner and retrieving it from NavMeshAgent.navMeshOwner.

See: