Skip to content
Discussion options

You must be logged in to vote

Unity identifies a serialized managed-reference type by its class name, namespace, and assembly name. Changing one of these can prevent existing data from resolving to the type. Moving a script into an assembly definition can change its assembly name even when the class name stays the same.

For a type migration, apply UnityEngine.Scripting.APIUpdating.MovedFromAttribute to the destination type and supply the former type identity. Verify the migration with existing scene, prefab, or asset data before saving over it.

Replies: 1 comment

Comment options

mackysoft
Oct 20, 2026
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by mackysoft
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant