Search Unity

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:
    485
    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:
    2,263
    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:

    halinh88, hdaniel_unity and Recluse like this.
  3. Recluse

    Recluse

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