Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


owner

Get or set the owning Object.
Read time 1 minuteLast updated 10 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine.AI
  • Assembly: UnityEngine.AIModule
Warning
Deprecated. owner has been deprecated. Use NavMesh.GetLinkOwner() and NavMesh.SetLinkOwner() instead.
public Object owner { get; set; }

Remarks

If the instance is not valid, setting the owner has no effect and getting it returns null.
Use this property to reference the component that created the link, or more generally, any object that contains useful information about this specific link active in the navigation system. The owner is null for any new link instance created with NavMesh.AddLink. You can, at any time, assign any Object to this property and retrieve that reference later.
When the link instance is removed the owner property returns null once again.