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 Xarbrough · Jan 17, 2017 at 09:24 PM · editorprefabproperty

Apply only a single value to prefab

I have a prefab with several instances in the scene. I modify a value on one of the instances. It becomes bold, telling me that it is unique to that instance and will not be overridden when the prefab changes. Now I can hit the "Apply" button at the top, so that all bold values are applied to the source prefab and re-linked. The problem is, that I have several bold instances values and only want to apply a single one.

How can I apply a single changed value to the prefab? When right-clicking on a property it gives me the option to "Revert value to prefab", which is the opposite of what I want. I want to apply and link a single value.

I guess that functionality is not built in, but could I maybe add it via custom code?

Concrete example: I have several prefabs with circle colliders. Now I want to change the size for all of them. Naturally, I could change it on the prefab in the project folder, but then I wouldn't have a realtime preview. Instead, I would like to take one of the instances, which are in the level at a relevant position and adjust the size there. Then I can copy the value to the prefab. So I thought there should be the functionality of just applying this one change without manually copying.

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
0

Answer by Arkaid · Jan 18, 2017 at 12:28 AM

I don't think it's possible from the apply button, but what you can do is modify the prefab itself.

Select the prefab in the project browser, and modify the value you want directly in the inspector. Any instance that hasn't had that value modified will reflect the changes. Of course, values in bold won't change.

Comment
Add comment · Show 1 · 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 Xarbrough · Jan 18, 2017 at 10:32 AM 0
Share

Thanks, yea that's the way I'm doing it right now. I've added my concrete example to the original question. In such a case I would like to have the 'live' preview directly on one of the instances, so I can see my changes in the scene and then apply that single change to all. I know I can also copy the prefab from the project into the scene, then make changes and apply, but that involves multiple steps again and might even take long, since the asset must be positioned correctly to get a good preview. I'd much rather just select an existing instance and make my change there without accidentally applying other instanced/bold properties.

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

84 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

Related Questions

How can I create a grid for a Leveleditor? 1 Answer

Why do prefabbed meshes go missing whenever I pull an update from Unity Collab? 0 Answers

Change angle of camera in prefab preview 1 Answer

How Mark Prefab Dirty? 1 Answer

Can I force z position to match prefab when it's dragged onto scene? 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