Version: 2021.3

ManagedReferenceMissingType

struct in UnityEditor

切换到手册

描述

Represents a managed reference object that has a missing type.

ManagedReferenceMissingType describes a managed reference object that could not be deserialized because it is missing its type.

It includes the details of the type (expressed by its assembly, class and namespace) that is expected in order to reinstantiate the object.

A type can be missing if the class was renamed, moved to another assembly, or moved inside a different namespace. A missing type may be a sign that an entire assembly or source script is missing from the project.

If the original types are not available, this info can aid in migrating data to new types, or making a decision to clear the associated data.

See Also: SerializationUtility.HasManagedReferencesWithMissingTypes, SerializationUtility.GetManagedReferencesWithMissingTypes, SerializationUtility.ClearManagedReferenceWithMissingType, SerializeReference

变量

assemblyNameName of the Assembly where Unity expects to find the class. (Read Only)
classNameName of the class that is needed to instantiate the Managed Reference. (Read Only)
namespaceNameNamespace where Unity expects to find the class. Namespaces are optional so this might contain an empty string. (Read Only)
referenceIdThe Managed Reference ID. (Read Only)
serializedDataString summarizing the content of the serialized data of the missing object. (Read Only)
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961