Version: 2023.2
언어: 한국어

ManagedReferenceUtility

class in UnityEngine.Serialization

매뉴얼로 전환

설명

Utility functions related to SerializeReference manipulation and access.

정적 변수

RefIdNullSpecial value, -2, used as the managed reference Id of any field decorated with SerializeReference that has no object assigned to it.
RefIdUnknownSpecial value, -1, used when the managed reference Id for an object is unknown, for example if GetManagedReferenceIdForObject is called with invalid arguments.

정적 함수

GetManagedReferenceRetrieves an object based on its managed reference Id.
GetManagedReferenceIdForObjectRetrieves the managed reference Id for an object that is referenced using SerializeReference.
GetManagedReferenceIdsRetrieves a list of managed reference Ids assigned to objects that are referenced using SerializeReference on a specified host.
SetManagedReferenceIdForObjectAssigns a managed reference Id to an object that is referenced using SerializeReference on a specified host.
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961