Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Any way to find which objects in heirarchy view have specific scripts on them?

Discussion in 'Editor & General Support' started by Ne0mega, Sep 1, 2021.

  1. Ne0mega

    Ne0mega

    Joined:
    Feb 18, 2018
    Posts:
    745
    My problem is sometimes I need to delete a script outright, but to do so, I have to find all the objects and prefabs that have them attached, or else (because I have auto-refresh off), the project will not compile, giving an error about a missing script.

    In fact, I still have an error that pops up every now and then, (usually after upgrading, I think it is) that warns a component/script is missing, and its from months ago.

    It would also be nice, if maybe there was a way to just clean up the entire project by removing all components that display the grayed out "script missing" in editor view.
     
    Last edited: Sep 1, 2021