Search Unity

  1. Looking for a job or to hire someone for a project? Check out the re-opened job forums.
    Dismiss Notice
  2. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Game Object not in Hierarchy and has no transform component????

Discussion in 'Editor & General Support' started by Recluse, Oct 13, 2020.

  1. Recluse

    Recluse

    Joined:
    May 16, 2010
    Posts:
    453
    Trying to resolve a missing script warning (see attached image). The Game Object causing it apparently has no transform component and does not show up in the hierarchy.

    The object is visible in the inspector panel, but not in the scene hierarchy?

    I don't know what this object is, or the missing script.

    How do I delete it, if I can't find it in the hierarchy?
     

    Attached Files:

  2. StaggartCreations

    StaggartCreations

    Joined:
    Feb 18, 2015
    Posts:
    1,363
    Try adding this script to any /Editor folder. Under the Tools menu an option will appear to show any hidden objects in the scene, with the option to delete it.

    HideFlags is used to hide objects in the hierarchy or in the inspector, there's probably a script/plugin that uses this, but forgot to clean itself up.
     

    Attached Files:

    Recluse likes this.
  3. Recluse

    Recluse

    Joined:
    May 16, 2010
    Posts:
    453
    Thanks! Found and deleted three hidden objects from an imported package.
     
unityunity