Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Question Improving Unity's "The referenced script on this behaviour is missing!"

Discussion in 'Editor & General Support' started by jasonatkaruna, Jun 9, 2020.


How would you like to be able to find missing referenced scripts?

  1. Unity has a workflow for this problem already and it is (answer down below)...

    0 vote(s)
  2. Use a Version Control tool that scans diffs for the referenced GUID and finds the meta file

  3. Use an editor tool that spits out the script name by storing a cache of GUIDs

    0 vote(s)
  4. Other (answer down below)...

    0 vote(s)
  1. jasonatkaruna


    Feb 26, 2019
    I'd like to find or write an editor tool that adds to the warning, "The referenced script on this behaviour is missing!" with the name of the script. Since the serialized behaviour stores no meta information about the referenced script, I'll need to create a shareable cache of the meta information here that updates on asset import.

    Does anyone have any experience with something like that or know any tools that are doing something similar?

    Maybe a simpler tool is a script that can scan version control diffs for that missing GUID?

    What workarounds do you have for this type of problem?
    PraetorBlue likes this.