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 /
This question was closed Feb 24, 2018 at 01:31 AM by Mansmart10 for the following reason:

The question is answered, right answer was accepted

avatar image
0
Question by Mansmart10 · Feb 16, 2018 at 10:44 PM · editorbuildprefab changing at runtime

Build Achievement system not working

Not working in the build. The achievement unlocking system works in the editor but not when I make a build of the game. The example is in the link. The achievements are prefabs that change in the editor but not in the build. For example when you unlock an achievement the lock for the achievement should change to a checkmark, but it doesn't do that in the build for some reason.

https://github.com/Smartman01/2D-Zombie-Annihilation/blob/master/zombie%20shooter/2D%20Zombie%20Annihilation%202_15_2018%209_26_52%20PM.zip

Code for achievements

     void Achievements()
     {
         PlayerPrefs.Save();
         if(kills == 1)
         {
             achievement_1.transform.Find("Lock").gameObject.SetActive(false);
             achievement_1.transform.Find("Checkmark").gameObject.SetActive(true);
             Debug.Log("working");
         }
         if (kills == 50)
         {
             achievement_2.transform.Find("Lock (1)").gameObject.SetActive(false);
             achievement_2.transform.Find("Checkmark (1)").gameObject.SetActive(true);
         }
         if (kills == 1000)
         {
             achievement_3.transform.Find("Lock (2)").gameObject.SetActive(false);
             achievement_3.transform.Find("Checkmark (2)").gameObject.SetActive(true);
         }
         if (waveNum == 10)
         {
             achievement_4.transform.Find("Lock (3)").gameObject.SetActive(false);
             achievement_4.transform.Find("Checkmark (3)").gameObject.SetActive(true);
         }
         if (waveNum == 50)
         {
             achievement_5.transform.Find("Lock (4)").gameObject.SetActive(false);
             achievement_5.transform.Find("Checkmark (4)").gameObject.SetActive(true);
         }
     }

Comment
Add comment · Show 2
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 RobAnthem · Feb 21, 2018 at 08:28 AM 0
Share

What bug are you referring to? There is no built-in achievement system. This looks like some janky poorly written achievement system you found in a tutorial.

avatar image Mansmart10 RobAnthem · Feb 21, 2018 at 10:44 AM 0
Share

I know there's no built in achievements system. $$anonymous$$y achievement system isn't working, I made the system. I came here because it's not working in the build. Do you have any suggestions on how I can fix that?

1 Reply

  • Sort: 
avatar image
0
Best Answer

Answer by Mansmart10 · Feb 24, 2018 at 01:30 AM

Used PlayerPrefs to get the saved data of the kills and total wave number to get the achievements to work now.

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

Follow this Question

Answers Answers and Comments

85 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 avatar image

Related Questions

Slow unity things 0 Answers

Server build vs editor breaks clients 1 Answer

Do unused textures take up space in the final build? 1 Answer

Script working in Editor but not in Build 1 Answer

really weird unity behavior please HELP???? 0 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