ドキュメント

Unity Engine

Unity Engine

ManagedReferenceUtility

Utility functions related to SerializeReference manipulation and access.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

public sealed class ManagedReferenceUtility

Remarks

Static Fields

Value

Description

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 ManagedReferenceUtility.GetManagedReferenceIdForObject is called with invalid arguments.

Static Methods

Method

Description

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.