SetLinkOwner(NavMeshLinkInstance, Object)
Associates an object with the instance of a link.
Read time 1 minuteLast updated 13 days ago
Definition
- Type: Method
- Namespace: UnityEngine.AI
- Assembly: UnityEngine.AIModule
public static void SetLinkOwner(NavMeshLinkInstance handle, Object owner)
Parameters
The identifier of the link instance for which you assign an owner.
An object that carries useful information in relation to the instance of the link.
Remarks
Call NavMesh.GetLinkOwner to retrieve a reference to the assigned object. The _owner property obtained from the path of an agent also points to the object that has been assigned to the link.
If the instance of the link is not valid, setting the owner has no effect and getting it returns null.
Additional Resources: _owner