Version: 2022.3
LanguageEnglish
  • C#

ManagedReferenceMissingType

struct in UnityEditor

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

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.

Additional resources: SerializationUtility.HasManagedReferencesWithMissingTypes, SerializationUtility.GetManagedReferencesWithMissingTypes, SerializationUtility.ClearManagedReferenceWithMissingType, SerializeReference

Properties

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