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 psamtani · Dec 23, 2010 at 01:52 AM · runtimepreview

Script running perfectly fine in preview mode, but not updating during the build

Hi All,

I have a script UFSMGui, that represents the HUD of the player. When I run it in preview mode, it runs perfectly fine. However, when I build the scene and try to run it, the HUD reflects a much older version of the same script. Any ideas on what could be causing this?

I have tried reimporting, refreshing, even changing the script repeatedly, and nothing works. The preview is absolutely perfect so its hard to determine where I'm going wrong. No errors in the debug log either.

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
1

Answer by JesusChristChangedMe · Dec 23, 2010 at 04:17 PM

I struggled with this same bug myself. I. Found the solution was to delete all older builds and their data. If you have numerous builds or previous ones, some reason it will mess up current builds. Just get rid of the previous applications and their data in your asset folder.

Comment
Add comment · Show 4 · 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 Jesus_Freak · Dec 23, 2010 at 04:39 PM 0
Share

another reason for this is that every time you build it, you for some reason, don't rename it and it makes a copy of the data. and if by some reason you have the same exact name for both data folders, unity will pick the data folder (i'd guess the first one, but who knows, at random? in order?) but the best thing to do is only have your current build present. always delete previous builds (to avoid that problem and also to save memory on your comoputer.)

avatar image JesusChristChangedMe · Dec 23, 2010 at 05:57 PM 0
Share

In other words, make sure you overwrite the application. So the data Is overwritten too.

avatar image psamtani · Dec 29, 2010 at 09:31 PM 0
Share

Thanks for the answer, but I tried it and it did not work. Any other ideas?

avatar image JesusChristChangedMe · Jan 01, 2011 at 07:55 PM 0
Share

is it giving you an error when you try to build it. about halfway through?

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

Export objects to a .3DS file at runtime 1 Answer

Asset preview at runtime 0 Answers

Model building in Unity with primitives and prefabs - opinions desired. 2 Answers

Destroy the first instanced prefab while still being able to generate more prefab's later 1 Answer

Adjusting terrain texture tiling. 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