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
1
Question by yatagarasu · Jan 09, 2014 at 12:43 PM · playerstate saving

Is it possible to save changes made in editor in playe/paused mode?

Is it possible to save changes made in editor in play/paused mode? By default changes made while project is running are not saved to scene. I know this is good and done on intention. But is it possible to force Unity update scene or modified prefab when in play mode?

Comment
Add comment · Show 2
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 Invertex · Jan 09, 2014 at 01:09 PM 0
Share

$$anonymous$$ight be able to take an opposite approach by setting your scripts to [ExecuteInEdit$$anonymous$$ode]... Though it may be too limited depending on your needs.
http://docs.unity3d.com/Documentation/ScriptReference/ExecuteInEdit$$anonymous$$ode.html

avatar image yatagarasu Invertex · Jan 09, 2014 at 01:12 PM 0
Share

Thanks, I know about that attribute but it would not help. The reason is sometimes I forget I am on pause and start to modify my scene. And after some work the only solution remaining is to press stop and loose everything done.

2 Replies

· Add your reply
  • Sort: 
avatar image
8
Best Answer

Answer by GameVortex · Jan 09, 2014 at 01:24 PM

You can but it requires custom editor scripts. I would recommend the **Playmode Persist** plugin from the asset store. It is not free though.

An alternative is to make sure you do not accidentally start editing in playmode, one way I have heard works great is to set your playmode tint color to something vastly different from normal editor color. You can do that if you go to Edit - Preferences - Colors. There you can edit Playmode Tint. Set it to something bright like all Green or similar and you will definitely know from the entire editor that you are in playmode and then probably not start editing by accident.

If after all that you have still accidentally edited something in playmode you can still save something by making it a prefab or copy specific components while you are in edit mode. This depends on what you have edited though, but take for example if you have a GameObject with a controller script that has a lot of values, and you edit all those values in playmode. You can then drag the gameobject into the Asset list and you will have made it a prefab, then stop playmode and drag the prefab out into the scene again. You can also instead rightclick on the component itself and choose: Copy Component. Then stop playmode and right click again on the same component and choose: Paste Component Values.

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 HappyMoo · Jan 09, 2014 at 01:29 PM 0
Share

Good $$anonymous$$gestion. Upvoted

avatar image ardaozkal · Sep 15, 2014 at 10:26 PM 0
Share

thanks, I was doing something random (overloading scene to test fps) but I worked like 30 $$anonymous$$s on play mode and thanks to you, I created a empty gameobject, put all in it and made it a prefab. Thanks for my half-hour.

avatar image
3

Answer by _Keith · Mar 10, 2017 at 07:13 AM

You can copy / paste the component values.

https://www.youtube.com/watch?v=A3ZcRx20TVs

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

22 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

Related Questions

Cannot dash in left-down, left-up and right-down directions? 2 Answers

I need help with the player's health points 1 Answer

Player Positioning Based on Previous Scene 1 Answer

How can I parent the player to another GameObject (Vehicle)? 2 Answers

Issues with player prefabs when I try to teleport it 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