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
3
Question by Joel 4 · Nov 03, 2010 at 07:53 PM · prefabprefabsparentingnested

Problems with nested prefabs

I have had some issues with accessing and updating nested prefabs in Unity 3, and I was wondering if anyone knew more on the subject.

Hypothetically, say that I have a Tire prefab which is then a child of a Wheel prefab. I then want to make that wheel part of another prefab called Car. I can do this, but when I create the Car prefab in the project view I can only access one level of the nested prefabs. Then, when I start making cars in my scene and I want to change some parameter of the Tire prefab and have it update across all of my cars, it doesn't work. It changes in the project view, but the changes don't affect any of the childed instances in the scene. Are nested prefabs that are more than one level deep not supported right now, or am I doing something wrong?

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

4 Replies

· Add your reply
  • Sort: 
avatar image
3

Answer by skovacs1 · Nov 03, 2010 at 08:06 PM

Nested prefabs don't work like you'd hope. A GameObject can only reference one prefab at a time.

  • Prefab a
  • Prefab b has an instance of Prefab a called ba
  • I change Prefab a and ba will not change because ba is a part of Prefab b and references Prefab b, not Prefab a anymore.

It is annoying that we cannot access more than one level of depth in a prefab in the project view and I wish they would fix that. Changes to the prefab more than one level deep will take effect on all instances of that prefab, but because we cannot access them in the project view, you have to go through hoops like changing them in code or overwrite your prefab >( which is not fun. There is probably an easier way, but I've just taken to the habit of avoiding the problem entirely.

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 Manuk · Jan 07, 2012 at 04:10 PM

http://forum.unity3d.com/threads/86417-Nested-Prefabs

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 Manuk · Jan 07, 2012 at 04:10 PM

http://feedback.unity3d.com/forums/15792-unity/suggestions/332835-editor-nested-prefabs?page=2

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 Bento-Studio · Mar 12, 2012 at 11:13 AM

It is now possible to create nested prefabs via this extension click here

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

A Question about applying changes to nested prefabs 0 Answers

How to find the prefab base of a Prefab Variant through code? 1 Answer

Reinitialize prefab 0 Answers

Customize script // swicth color, geometry (prefab), change child of prefab? 0 Answers

How to parent a prefab? 2 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