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
1
Question by ina · May 01, 2012 at 11:25 PM · gameobjectscenehierarchy

Using empty gameobjects as "folders" in scene hierarchy panel

I typically drag and drop GameObject's into public variables in the component inspector.. Are there any downsides to using an empty GameObject as a "folder" to organize my scene hierarchy, especially for complex multi-object scenes?

Comment
Add comment · Show 5
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 Seth-Bergman · May 01, 2012 at 11:37 PM 5
Share

keep in $$anonymous$$d that an un-childed object is parented to the world, so if you child it to something else, the hierarchy is affected in that sense. Not necessarily a "downside", but I expect certain confusing issues could arise

avatar image chainedlupine · May 02, 2012 at 01:52 AM 2
Share

As Seth mentioned it can complicate chaining of transforms, but if your empty GameObject is at in the absolute center of the world and at unit-length scale with no rotation, then you'd never notice it. Your children are still, effectively, in world coordinates.

avatar image syclamoth · May 02, 2012 at 02:00 AM 0
Share

If your centre transform has non-uniform scale, it can cause weird problems. Basically it's not an issue as long as all your code is written keeping it in $$anonymous$$d.

Actually, now that I think about it, if the centre transform has a scale of (0, 0, 0), that would kind of break everything, but I'm sure you won't do that.

avatar image ina · May 03, 2012 at 04:18 AM 0
Share

how about: default empty GameObject as the "root" gameobject "folder" ?

avatar image Berenger · May 03, 2012 at 05:03 AM 0
Share

I usually have a GameObject named "_" in my scene, pos (0,0,0) rot (0,0,0) and scale (1,1,1). I use it to store things like walls, terrains, lights etc. Works quite all right.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by philstrahl · Apr 01, 2016 at 05:45 PM

I guess I'm late to the party but if can, avoid it. The thing is, that every GameObject allocates memory for properties, functions, etc, even if it's just used as a "folder". Depending on how many you have, especially on mobile, this might lead to performance and/or memory issues.

Do i have an alternative for that? No. I wish there was a simple "Bin" type or similar.

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

8 People are following this question.

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

Related Questions

Best workflow for DontDestroyOnLoad method regarding Unity Editor? 1 Answer

Monodevelop deleted my hierarchy/scene 2 Answers

I have an error, script should check for null or not destroy game objects 2 Answers

good resource about conserving memory when multiple levels share resources? 0 Answers

Overwrite the inspector window on Scene Asset heading chosen in the hierarchy window 0 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