文档

Unity Engine

Unity Engine

owner

Get or set the owning Object.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Property
  • Namespace: UnityEngine.AI
  • Assembly: UnityEngine.AIModule
public Object owner { get; set; }

Remarks

If the instance is invalid: setting the owner has no effect and getting it will return null. Additional Resources: NavMeshAgent.navMeshOwner.