• 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 Teh_Bucket · Aug 09, 2013 at 03:46 AM · prefabsassetscomponents

can I update prefab Assets with new 3D files without resetting their components?

For example: I have a blend file in my assets folder. I make an empty prefab in the assets folder and put the .blend asset into the prefab. (the prefab isn't part of the scene, it's just in the Asset folder so I can instantiate it into the scene later). After a lot of work, the prefab has a lot of components and settings, but I need to update the original blend. I replace the old .blend asset with an updated .blend, but the prefab is not changed. If I drag the .blend onto the prefab, all of prefab's components and settings are removed.

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

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by pitimoi · Aug 09, 2013 at 04:15 AM

Hi,

With Unity, one of the best practice to keep in mind is to never use your artistic stuff as prefabs. Try to always create an empty prefab that will contains all your logic stuff (scripts, rigibody, colliders...) and add the mesh as a child of this object. Then you just have to change the child in order to set a new mesh or to update it.

I never worked with blend files, but maybe you can just replace each part of the blend file in your prefab (like meshes in renderer component, materials...)

I hope it helps you a bit ;)

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 Teh_Bucket · Aug 09, 2013 at 04:31 AM

Thanks, considering these prefabs aren't in the scene itself, can i parent the assets to the prefabs in the Asset folder itself, for instantiation?

Also, components i've just found out are copy and pasteable, which makes this process a lot easier.

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 pitimoi · Aug 09, 2013 at 04:37 AM 0
Share

the best way to do it is to create an empty gameobject in a new scene, add anything you want to be on your prefab on this gameobject (including meshes as child), then name it as you want and drag it in your project folder. Unity will tranform it into a prefab you can instantiate anywhere ;)

If you want to do further changes to this prefab, just drag it back into a scene, perform any changes you need, then apply your prefab and delete it from the scene !

avatar image Teh_Bucket · Aug 10, 2013 at 06:19 AM 0
Share

Thank you very much, I'm using this system now and it works perfectly.

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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

15 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

Related Questions

What files are responsible for script components on prefabs? 2 Answers

Get path to prefab asset not from instance is not working :/ 0 Answers

How do I instantiate a prefab from my asset files without using a public reference. 1 Answer

Prefab isn't centered on my cursor 0 Answers

Put all Assets in Resources Folder ? 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