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
6
Question by kk93 · May 30, 2014 at 06:05 PM · editor

Is there a way to collapse all Components?

I have GameObject that holds all AudioSource components. I think I will have 20~30 AudioSources on this object by the end. The problem is, even if I collapse them manually, after I build and run, they all open up again.

Is there a way to collapse all components with just couple clicks?

Comment
Add comment · Show 1
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 JayOhhh · May 30, 2014 at 06:25 PM 0
Share

I believe the only way possible of doing this would be to use a custom editor.

http://docs.unity3d.com/$$anonymous$$anual/editor-CustomEditors.html

How? I don't know, but this might help :P

3 Replies

· Add your reply
  • Sort: 
avatar image
2
Best Answer

Answer by Wuzseen · May 30, 2014 at 06:41 PM

20-30 AudioSources on one game object is, 9 times out of 10, the wrong way to do it.

You should probably be swapping audio clips in your audio source and playing those. That will "solve" your problem here, though to answer your question--there is no "collapse all", it is a feature that would be awesome though...

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
17

Answer by JayFiraja · Apr 17, 2020 at 03:07 PM

Right Mouse click on the Inspector Tab, this makes the context menu show up and there is "Expand ALL Components" and "Collapse All components"

Not really sure when this was added though. XD

Comment
Add comment · Show 2 · 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 lfagel84 · Jan 06, 2021 at 04:31 PM 0
Share

this is it. Thanks.

avatar image tbriz · Jan 08 at 03:49 PM 0
Share

The real hero.

avatar image
6

Answer by Bryan-Legend · Feb 23, 2016 at 10:29 PM

Alt+LMB on the arrow in the hierarchy or project views will expand all or collapse all.

Comment
Add comment · Show 2 · 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 two2uns · Apr 16, 2020 at 08:06 AM 0
Share

This will collapse GameObjects in hierarchy. But how to collapse components on one gameobject?

avatar image gillemp two2uns · Nov 16, 2021 at 10:41 AM 0
Share

By right-clicking on the inspector tab, you will see the option

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

29 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

Related Questions

ShaderGraph-like EditorWindow 0 Answers

Unity lag when play but not when build 1 Answer

Terrain grass invisible in editor 1 Answer

Remove or disable an EditorGUILayout.PropertyField 0 Answers

Anyone else having trouble opening Unity 2018 Editor After Win 10 1809 update? 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