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 JamieFristrom · Jan 22, 2011 at 01:30 AM · changeparameterslive

How do I keep changes I make to parameters while game is running live?

It's very cool that I can make changes to parameters while the game is running, and see the results live with no iteration time.

When I stop the game, those changes I make go away and I have to make them again. And that makes sense for the most part.

But sometimes I want to keep the changes. Sometimes I forget that I'm running live; sometimes I'm tweaking/tuning an object to get it just so, and then it's heartbreaking to lose the results.

Is this something simple I'm missing?

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
3
Best Answer

Answer by yoyo · Jan 22, 2011 at 05:26 AM

I recently discovered that you can copy/paste game objects -- so you can copy your tweaked object while the game is running, then paste it after you press stop. This will create a new copy of the object -- you can either delete the original, or use the new copy as reference for manually copying the parameters you tweaked.

Also, to avoid investing time into making tweaks while running, only to lose them later, make sure to turn on Edit > Preferences > Colors > Playmode tint, which makes it immediately obvious when you're running and when you're not.

See also AngryAnt's editor copy script, mentioned here.

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 JamieFristrom · Jan 24, 2011 at 07:09 PM 0
Share

Playmode tint is great, and copying/pasting seems to be the way to go if you've neglected to make a prefab.

avatar image
3

Answer by Steffen Franz · Jan 22, 2011 at 01:38 AM

you can update values in a prefab at runtime and "apply" the changes. Those will stick even if you stop the game.

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 JamieFristrom · Jan 24, 2011 at 07:08 PM 0
Share

So ... always use prefabs, sounds like.

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

No one has followed this question yet.

Related Questions

Paramete Name changes automatically into e.g. New Float 1 Answer

Move camera upon button press 0 Answers

How do i change default material ? 1 Answer

Change the keycode in game by associating it to the previous script 0 Answers

calling a function from another script 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