- Home /
How can I get the serializedObject of a missing MonoBehaviour without an Editor?
Hi! I'm working on a script to fix the missing scripts when I move a scene from one proyect to another. I know the missing script name, but I want to apply the properties that are stored in the serializedobject. I can access to that srializedObject from a custom Editor, but I want to do that from my script and outside an Editor. I can parse the scene file an access to that properties, but I want to do that getting the data inside the Unity application. Anyone know a way to do that? The inspector can get the serializedObject from the missing script that can be accesible from a custom Editor. How the inspector do that? I tried to build a serializedObject for the gameObject, and I get access to the componentes and know which compos are missing. I know the fileid of all this components and the pptr to the object, which is null for the missing components. The properties of that missing scripts are stored in the unity scene file, but I didn't find how to get it.
Thanks.
Have you solved this problem? I would like to be able to detect that there are missing components...
Your answer
Follow this Question
Related Questions
FindRelativeProperty never worked for me? how does it even work? 2 Answers
"SerializedObject target has been destroyed." What does this mean? 0 Answers
ApplyModifiedProperties() for UnityEvent ignores method name 0 Answers
Serializable class doesn't store list<> 1 Answer
Get a Serializedproperty for an element of a SerializedProperty for a List<> 0 Answers