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 haimmoshe · Oct 03, 2017 at 04:32 PM · editorprefabprefabschildrenprefab-instance

Hiding gameobjects in hierarchy make it less expensive ?

The problem is i have a prefab but the prefab have many many children cubes. So each time i drag the prefab to the scene or the hierarchy it's adding to the hierarchy a lot of children cubes.

Is there any solution to no adding the children to the hierarchy ? Maybe to convert the prefab to something else ? Maybe hiding the children in the hierarchy ? But hiding is just make them no visible they are still in the hierarchy.

Maybe there is a way to make copy of the whole children as one prefab without the children ?

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 ABerlemont · Oct 03, 2017 at 04:39 PM 1
Share

I'm not sure I understand the issue. If the original prefab has many children it's logical that when you drap the prefab into a scene all children will come with it... ?

What is your goal ? If it's not "just" hiding the children ?

avatar image haimmoshe ABerlemont · Oct 03, 2017 at 04:53 PM 0
Share

But the prefab have like 500 children cubes. $$anonymous$$y question if it's not too expensive i mean if i have 3-4-5 prefabs each 500 children cubes it won't make everything slowly when running the game and the prefabs are in the hierarchy ?

avatar image ABerlemont haimmoshe · Oct 03, 2017 at 05:10 PM 1
Share

If you are trying to have the editor running smoothly with heavy objects within the scene I don't think there is a magic solution to solve that issue (that I know of). When I work with a lot of object I usually try to not select / open the hierachy at runtime. Selecting a parent will make stuf with all dependencies.

avatar image hexagonius · Oct 03, 2017 at 09:24 PM 0
Share

If all the cubes stay in the same place all the time, you could mesh combine them to just one mesh. This will reduce your hierarchy to 1:

https://docs.unity3d.com/ScriptReference/$$anonymous$$esh.Combine$$anonymous$$eshes.html

avatar image digzelot · Oct 03, 2017 at 09:29 PM 0
Share

Why are there 500 children within the prefab if you don't want 500 children in the scene when you add the prefab?

IE, what purpose do these 500 child objects serve?

0 Replies

· Add your reply
  • Sort: 

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

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

Related Questions

prefab navagent doesnt work,prefab navmesh doesnt work 1 Answer

Can't modify BoxCollider center/size on base prefab 0 Answers

"Change" Prefab Component Attributes 0 Answers

Link GUIText to a prefab? 2 Answers

Some components missing in the prefab (clone) 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