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 UdevMike · Aug 24, 2011 at 03:10 PM · gameobjectprefabmultipleselectrevert

Reverting to prefab-state several game objects at once with stock Unity

Hey guys, I need to revert several similar objects to their prefab at once but when I select said objects I can only revert last selected.

This issue seems to be a part of a pervasive problem with Unity whereby if several objects are selected you cannot make changes to all of them(Say remove a component that they all share).

Any ideas would be greatly appreciated, since this issue has bugged me ever since I started working with Unity.

Thanks!

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

3 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by roamcel · Aug 24, 2011 at 03:24 PM

Since you seem to be talking about editor mode strictly, the only simple way in which you can achieve something similar is by creating a different prefab for each 'class' of your gameobjects in the scene, and then alter the PREFAB attributes for each group, rather than the scene objects.

I don't think there's many occasions in which this could be an issue though. You usually don't need to revert scene objects to prefab, unless you're experimenting with the editor, possibly. As a matter of fact, in this case you could be better off actually going for editor scripting.

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 UdevMike · Aug 24, 2011 at 03:51 PM 0
Share

That's quite true, and while I try to keep myself from editing a prefab-connected-object so as not to break the connection at times it either happens by accident or due to a crash.

But it is a bit counter-intuitive and dreary since I need to create a prefab for each lamp as an example.

avatar image
0

Answer by DaveA · Aug 24, 2011 at 03:31 PM

Give this a try: http://www.unifycommunity.com/wiki/index.php?title=ReplaceSelection I think it will do what you need.

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 UdevMike · Aug 24, 2011 at 05:31 PM 0
Share

Thanks Dave, I'll give it a try!

avatar image
0

Answer by Stardog · Dec 28, 2011 at 12:27 PM

Here is a solution: http://answers.unity3d.com/questions/144453/reverting-several-gameobjects-to-prefab-settings-a.html

Old question, but it's high up on Google, so I'm linking to the solution.

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Set Rigidbody variable to Prefab using code 1 Answer

Change the colour of a prefab with a script. 1 Answer

how to load gameobject from one scene to other? 2 Answers

Instantiate an array of prefabs? 0 Answers

Load Prefabs in Array with Javascript 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