AssetsUtility
GetLocalIdInFile
Gets the uniq id of object in his scene.
AssetsUtility.GetLocalIdInFile(gameObject);
AssetsUtility.GetLocalIdInFile(component);
AssetsUtility.GetLocalIdInFile(serializedObject);
AssetsUtility.GetLocalIdInFile(parentGameObject, index); // opens the scene yml file to found the id, works for missings
Missings
/!\ It is a preview... Actually this methods can cause crashes. Just reload Unity after saving the scene. Probably not works with prefabs.
Clean up the active scene
Use menu Wonderland/Missings/Clean up..
to remove all missing components in the scene.
DebugInspector
Use this window to see missings and hidden components.
Methods
AssetsUtility.RemoveComponentById(GameObject parent, int componentId);
AssetsUtility.RemoveAllMissings(Component target);
AssetsUtility.RemoveAllMissings(GameObject target);
AssetsUtility.RemoveAllMissingsRecursive(Transform target);
AssetsUtility.RemoveAllMissingsRecursive(GameObject target);