Version: 2023.2
言語: 日本語
public Object owner ;

説明

Get the object used to create the NavMesh link represented by the data in this struct.

If the link has been instantiated by a call to NavMesh.AddLink then this property returns the object that might have been associated to that instance with a call to NavMesh.SetLinkOwner. If that link instance has no owner assigned to it then this property returns null.
If the link was instantiated by an OffMeshLink component then the owner returns a reference to that component.
To effectively use this property in your scripts you need to determine the exact type of the returned object. To do that cast the object to the types that you use in your project to create NavMesh links.
For automatically-generated Jump or Drop links, this property returns null.

See Also: NavMesh.SetLinkOwner.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961