Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by $$anonymous$$ · Sep 23, 2017 at 04:59 PM · gameobjecthierarchy

How can I get rid of this element?

Hi, I don't know what this is and how to delete it. This gameobject (or whatever it is) can't be found in hierarchy. alt text

Even though this object doesn't interact with any other objects and doesn't affect game anyhow, it really annoys me.

01.png (30.1 kB)
Comment
Add comment · Show 9
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image tmalhassan · Sep 23, 2017 at 05:10 PM 0
Share

Hi. I have this thing as well, i think it's a glitch or something. But it is totally harmless and doesn't appear on the game view, you can only see it on the scene view.

avatar image $$anonymous$$ tmalhassan · Sep 23, 2017 at 05:22 PM 0
Share

Yeah, I know, but it still irritates me :(. Thanks for reply anyway.

avatar image Vicarian $$anonymous$$ · Sep 24, 2017 at 04:48 AM 0
Share

Are you talking about the purple box with a bit of a red X over it? That shows up in the scene view when an invalid transform is created. It can be due to a negative scale, or trying to get an object with a particular size into a container that can't display the entire thing. At least that's been my experience. It can be difficult to figure out why that shows up, since I'm sure those two cases aren't the only possible ones.

Show more comments
avatar image hexagonius · Sep 24, 2017 at 03:37 PM 0
Share

Does it appear in an empty scene? New project?

avatar image Bilelmnasser · Oct 03, 2017 at 08:48 AM 0
Share

it can be a game object in the hierarchy with empty name (impossible to see) or some script with this flag [ExecuteInEdit$$anonymous$$ode] creating it ?

avatar image $$anonymous$$ Bilelmnasser · Oct 03, 2017 at 06:18 PM 0
Share

maybe, so what should i do then?

avatar image Bilelmnasser $$anonymous$$ · Oct 05, 2017 at 10:23 AM 0
Share

it's up to you, you need to inspect all codes that contains [ExecuteInEdit$$anonymous$$ode] or HideInHierarchy flags and try to select those objects in the hirachy.

avatar image hexagonius · Oct 03, 2017 at 10:16 PM 0
Share

Can you search your code for HideInHierarchy? https://docs.unity3d.com/ScriptReference/HideFlags.HideInHierarchy.html

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by Bunny83 · Oct 05, 2017 at 11:02 AM

It could be a Gizmo that is drawn by one of the scripts you have in the scene. Check the Gizmos menu above your SceneView:

custom gizmos

If there are no classes with an OnDrawGizmo method or if deactivating doesn't help:

Try using the editor script i've posted over here. Be careful as it reveals even built-in hidden objects which you shouldn't touch or delete. If you do the Unity editor might get unusable and you may have to force quit. Though everything will be back to normal when you restart the editor.

If you can't find any object in the scene, it might be a custom inspector or other editor script which hooked into the OnSceneView delegate to manually draw that thing. This is a bit difficult to figure out. Try searching through your whole project for the text SceneView.onSceneGUIDelegate. If you found something it might be the reason for the image.

If you can't find that text anywhere in your project, you may have imported third party editor assemblies (DLLs) which contain the code that is drawing this image.

From this point on it's getting really difficult to help any further.

If nothing helped so far, before answering back you should narrow down the problem:

  • Does it still exist when you open a new empty scene?

  • Does it still exist when you create a new empty project?

If it's gone when you open a new scene it has to be something in the last open scene.
If it's gone when you create a new project it might be something in your project (editor script)
If it's still there it might be some strange kind of Unity editor extension.


customgizmos.png (23.2 kB)
Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

102 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Is there anyway to batch renaming via Editor [not on Runtime] multiple game objects in the hierarchy ? 4 Answers

Unity IDE: Finding out object type of arbitrary item in Hierarchy 3 Answers

Hierarchy Foldout Variables Wanted 3 Answers

How to change multiple objects from one layer to another in the hierarchy? 0 Answers

keep gameObject in hierarchy folded when not selected 3 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges