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
3
Question by oswin_c · Apr 16, 2017 at 03:45 PM · editoreditor-scriptingcustom editorfoldersheirarchy

Is there any way to create folders in the heirarchy to group objects?

First, I am very aware of the "parenting things to empty game objects", which is suggested every time this problem is brought up, hopefully never by anybody who knows what they're doing.

When I say "folders", I mean something that is editor-only and has no consequences in code or games, merely helping to dig through a large project.

And when I say "create", I mean script, because this is not yet a feature in Unity at this time.

Answering the question "How can I access and explore the API for the hierarchy window to create folder-like functionality?" would be enough, I think.

I am already familiar with custom editors and custom inspectors and have many windows of my own, so you do not need to start from the basics. I won't be offended if you want to anyway -- other people with the same problem might appreciate that.

Can anyone point me in the right direction on where to start?


To avoid this question meeting the fate of every one like it I have found, please, consider the following before telling me to use empties. The question is done -- everything that follows is a PSA on using empties as folder substitute.

Problems with using empties as folders include but are not limited to:

  • Transform.root will return the transform of the empty you are using as a folder. Without Transform.root, you are on your own for things such as having a raycast hit an enemy's hitbox on their hand and still tell you what enemy you hit without having to, for example, shove a band-aid extension method somewhere. There are plenty of workarounds.

  • Parenting has overhead and consequences. These are probably insignificant until the moment you do something like start baking GI, automatic or not.

  • If your empty isn't (0, 0, 0) and Quaternion.Identity, rotations are bound to get more complicated, especially if you're like me and constantly forget which order to put rotation*Quaternion... in to get world space.

There are plenty of workarounds to these problems, but the best workaround I have found with the least amount of trouble and debugging steps in the long run is not using empties as folder and having to scroll a lot.

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

1 Reply

· Add your reply
  • Sort: 
avatar image
3

Answer by tanoshimi · Apr 16, 2017 at 04:36 PM

No, you can't. I'd suggest you vote for the following feature suggestion to add it: https://feedback.unity3d.com/suggestions/creating-folders-in-hierarchy

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

86 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

Related Questions

Change texture import settings by script 0 Answers

I want to Highlight an object in the hierarchy without selecting it (just the visual effect) NOT USING PING 0 Answers

Why is Editor not persisting programmatic changes even when using EditorUtility.SetDirty() 1 Answer

Custom Editor Access to Scene Objects Variables (in the same way as UnityEvents) 1 Answer

Custom editor script for folders? 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