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 MasterLG · Oct 01, 2012 at 07:52 AM · errorprefab

Prefabs aren't updated when run or built

When I change my prefabs, the prefabs are changed as expected, however when a script uses them, they're not updated. If it's important, my project is for iOS.

I can place them manually and they turn out as expected, but when I have a script place them, it's placing an old version. The error happens when I use either the play button or build the project.

How would I go about fixing this?

RESOLVED
I just created a new prefab from scratch.

Comment
Add comment · Show 4
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 ThermalFusion · Oct 01, 2012 at 08:10 AM 0
Share

If you select your prefab in the project view, does that show the old version in the inspector or the new version?

avatar image MasterLG · Oct 01, 2012 at 09:27 AM 0
Share

It's showing the old version.

avatar image MadDave · Oct 01, 2012 at 09:42 AM 0
Share

Did you really 'apply' the changes to the prefab? Or did you maybe modify the prefab in 'Play' mode?

avatar image MasterLG · Oct 01, 2012 at 12:53 PM 0
Share

I applied the changes before entering Play mode.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by KhaLa · Oct 01, 2012 at 10:08 AM

Well as far as I've been using (it's not much) I've been using the "reset" button on the window;

Click the game object --> Look for your script component --> Click the little gear icon --> and click "Reset". This will load the default values you assigned from Prefab.

There's also the possibility of the code you've written has compilation problems. After you open your script make sure you clean and build your code manually instead of CTRL + F8 and see that there are no errors.

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 MasterLG · Oct 01, 2012 at 01:03 PM 0
Share

I've tried the reset thing, and I tried it again. It's still somehow loading an old copy of a prefab. I created a new prefab based on the old one.

I just created a new prefab from scratch and that seems to be working as it should be.

avatar image KhaLa · Oct 01, 2012 at 01:29 PM 0
Share

Well it seems it's bugged but it has never occurred to me before. During such cases I just close unity and open it again. %99 of the time it solves the problem. You may try saving the scene next time, since it saves all the prefabs you have modified too.

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

12 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

Related Questions

Instantiate Prefabs. Errors. 2 Answers

Instantiated gameObject(here, wall) destroyed, but when checked for existence, shows that it exists, how? 1 Answer

Assertion failed on expression: 0 Answers

ThreadCheck error when making Prefabs 1 Answer

What does "Couldn't find matching instance in prefab" mean? 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