Hi, I would like to know that how can i get the origin of the missing reference exception.
I know that if i double click on it it shows which object but it only spawns during runtime and due to the size of the project i can’t really examine all the work others have done.
Error:
Script attached to 'Timers' in scene ' ' is missing or no valid script is attached.
UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()
Is there a way to figure out “How” timers spawn? If i use search in files there is no evidence about this so i have no clue.
Thanks for reading.
If it’s instantiated through code, probably not. If you’re trying to locate which objects like prefabs are missing scripts though, there’s an excellent editor extension script called “FindMissingScriptsRecursively” that I’ve found quite helpful in the past. Maybe you’ll get lucky.
You can try to use my helper code (check out this post: www.tallior.com/fixing-missing-references/)
I don’t know how it compares to the other one shown, but it can also go over all scenes in your game and analyze them for missing references.
Of course it cannot handle all edge cases such as things that are dynamically created at runtime (e.g: through code) but it may help you find the issue.