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
0
Question by TheMaster42 · Jun 07, 2013 at 11:08 PM · scenedataresetdefault

Every so often, every script in my scene has its values reset to default

Every once in a while, every script in my scene gets all of its inspector values reset to their defaults. This has happened to me about 5 times now over a month and a half period.

I've searched online but have not seen anything quite like this.

I have my entire Unity project folder in my Dropbox folder - could this cause problems?

In my scripts when I declare my variables I usually give them default values. If I set them in the inspector, however, this should override those (and stay that way) correct?

Any help or guidance would be appreciated.

Comment
Add comment · Show 3
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 iwaldrop · Jun 08, 2013 at 02:01 AM 1
Share

Yes it should stay the way that you set them in the inspector, because they're serialized to the prefab/scene. Dropbox may have something to do with it, and you might want to try enabling meta files via "Edit/Editor > VersionControl > $$anonymous$$eta Files".

avatar image xKroniK13x · Jun 08, 2013 at 04:43 AM 0
Share

$$anonymous$$ine did this once when I imported some new textures and set them up into an atlas using NGUI. I haven't had any more occurrences of it though... maybe some sort of import bug?

avatar image saschandroid · Jun 08, 2013 at 09:54 AM 0
Share

Did you change the variables in the inspector while in "play mode"?

1 Reply

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

Answer by DannyB · Jun 08, 2013 at 11:02 AM

As mentioned in the comments, I believe that Dropbox is most likely the cause especially if there is a chance that this Dropbox folder may get updated from the outside (by another device accessing Dropbox, or another user, if this is a shared folder).

If you are placing it in Dropbox so you can easily share it between computers or people, then you need to take several things into account.

All in all, I would recommend NOT placing the project in Dropbox, but you can still use Dropbox for sharing.

  • For more information on version control (and naturally, sharing) in Unity, see this answer

  • For using Dropbox as a code repository, see this page

  • To just try and solve your problem, move your project to another folder and see if it still happens.

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

18 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

Related Questions

Reverting changes to default scene 0 Answers

Retaining old scene data 2 Answers

I accidentally changed my build to 4.6.1f1 and now i dont know who to change back? 0 Answers

how i can write a text from another code ? 2 Answers

I created a maze game where the ai uses a pathfinder to find the MainCharacter. I want when the ai touches the MainCharacter(First Person Controller), then reset the game. I have gotten help on my code a few time but the code never works. 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