Version: 2022.1
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.

See Also: 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)