Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 ina · Dec 30, 2010 at 05:47 AM · gameobjecthierarchyide

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

Unity IDE: Is there a way to tell an object type (is it a sphere, plane, cube, empty? etc) of an arbitrary object in Hierarchy (without clicking on each one)?

Also, when you remove components from an object - such as mesh filters, you can't tell if something is a cube easily... even if you try zooming in on it, another object (in a complicated scene, especially!) might be blocking it from easy view

Comment
Add comment
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

3 Replies

· Add your reply
  • Sort: 
avatar image
2

Answer by Jessy · Dec 30, 2010 at 06:43 AM

Those are not "objects types". Those are shapes of a mesh, and matching colliders, easily created with menu items or GameObject.CreatePrimitive. All Game Objects in your scene are the same thing; the only component they are required to share is a Transform, but on top of that, the components you add are what differentiate them. There is no "sphere game object" or "cube game object".

You can not remove a mesh filter and have something be a cube; there is no mesh then, cube or no cube! Your best bet for keeping your sanity with scenes with many game objects and complex nesting, is to name and parent things logically, and use tags.

Comment
Add comment · Show 4 · 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
avatar image ina · Dec 30, 2010 at 06:45 AM 0
Share

Something can look like a cube but have no cube meshfilter etc... Also, my question is referring to the gameobject list in hierarchy pane in general

avatar image Jessy · Dec 30, 2010 at 06:47 AM 0
Share

No, it can't. "Look like" requires rendering; rendering requires a mesh filter or skinned mesh renderer. That doesn't help understand your "question"; I don't believe you really have a question; I think you're misunderstanding the game object + component system.

avatar image dissidently · Dec 30, 2010 at 02:58 PM 0
Share

yes. the trick to the spoon is knowing there is no spoon. Jessy your answer is genius. its the first time I can see thru the looking glass. thankyou!!!!

avatar image dissidently · Dec 30, 2010 at 03:04 PM 0
Share

btw. Unity take this information in Jessy's answer and learn to shout about this aspect of your engine throughout the documentation. You'll help more than you know. $$anonymous$$aybe have Jessy word it. He seems to be the copywriter you need. ::: http://unity3d.com/company/jobs/?jvi=o4BtVfwN,job :::

avatar image
1

Answer by brett nieland · Jan 04, 2014 at 04:25 PM

For you programmers out there, Unity composes objects instead of deriving them from GameObject. Thus, what differentiates the "GameObject types" is the collection of components they contain, not some derived class.

So, when you hit GameObject>CreateOther>Cube on the menu, you are just creating a GameObject that has a set of components attached to it by default. In the case of a cube, they are a Transform, Mesh Filter, Box Collider, and a Shader.

You would have the exact same result if you created an empty GameObject and added these components to it one by one.

note: I am pretty new to Unity, so if I have any details wrong, please let me know!

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
avatar image
0

Answer by OldCat · Sep 16, 2016 at 08:51 AM

With prefabs you could use right click, "select prefab" option @ina

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

2 People are following this question.

avatar image avatar image

Related Questions

Quickly isolate GameObjects in Hierarchy with scripts in them? 2 Answers

Best workflow for DontDestroyOnLoad method regarding Unity Editor? 1 Answer

Grouping objects without overhead? 1 Answer

Scripts in Hierarchy attached to empty object not showing? 1 Answer

Animations only playing correctly when GameObject is selected in hierarchy,Animations only working when Object is selected in hierarchy. 1 Answer


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