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 /
  • Help Room /
avatar image
1
Question by sid4 · Dec 25, 2016 at 07:49 PM · save scene

Does save scene as save all setting changes?

I have a game that I have been saving along many steps of creating, and now I realize after many "save scene as" saves it is not saving the changes as I thought. it saves what game objects you add or delete from the inspector only . when I changed speeds of players or other things like this in the inspector it did not save different it saves over the original

so does anyone know what exactly save scene saves and what it doesn't?

is there a way to save all changes 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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by TheGreyRaveen · Dec 25, 2016 at 08:40 PM

If you save a scene all public variables in scripts set via Inspector are also saved. Did you change them while in play mode? Changes made in play mode are not saved, only those made in the editor mode are saved.

Comment
Add comment · Show 5 · 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 sid4 · Dec 25, 2016 at 10:13 PM 0
Share

hi no , i am aware of that if changed in play mode nothing is saved

I always saved in editor mode also if you change a script is that also saved in new save?

avatar image TheGreyRaveen · Dec 25, 2016 at 11:38 PM 0
Share

Scripts have to be saved independently. Saving scene doesn't save changes made in scripts. In fact Unity has access only to these versions of scripts which are saved on a hard drive. If you make some changes in scripts always remember to save them in your code editor, otherwise Unity will still read old version of a script without displaying any warning messages. This can be sometimes very confusing.

avatar image sid4 TheGreyRaveen · Dec 26, 2016 at 12:09 AM 0
Share

when you say save them in code editor can you explain how I do this? do you mean to save them under a different new name?

avatar image sid4 TheGreyRaveen · Dec 26, 2016 at 12:19 AM 0
Share

yes also so to be clear,, -- so everything is saved in a "save scene as " except script changes?

avatar image TheGreyRaveen sid4 · Dec 26, 2016 at 01:20 AM 0
Share

As far as I know "save scene" saves you only a scene file .unity. Generally all other "things" are saved independently. I'm gonna give some examples. If we create a script .cs, it will be immediately saved on a drive. And going further if we want to change its code, we have to save it in VisualStudio, $$anonymous$$onoDevelop etc ( these are examples of those "code editors" i mentioned). If we take .prefab and change some values in its Inspector it will be immediately changed in its file and overwritten on a drive. Or if we create animation .anim it will be saved immediately on a hard drive. What I'm trying to say is that the operation "save scene" only overwrites "scene.unity" file. It has nothing to do with other files like scripts, sprites etc. And to be clear .unity file is responsible only for the objects and their settings set in the specific scene(those you can see in Hierarchy window). All assets included in projects remain untouched regardless of whether you save scene or not. That's why there's no warning if for example you only change some assets and quit Unity.

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

Is there a way to save a scene in a current state? 0 Answers

How to save an Open_World game! 0 Answers

Unity freezes (5+ min) after version update. How to investigate the problem? 0 Answers

how can i save a scene? 1 Answer

Saving data in different scenes 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