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 Auggie · Feb 27, 2013 at 08:24 AM · androidnguiunity 4

Why is my build working on Unity but doesn't work on android?

i am working on a project. it has been going fine. i am at the last stages of polishing my game. all is well when i am testing it on UNITY, however, when i make a build and hit play it doesn't run my scripts on that particular scene. to make things worst, it doesn't report any error on my development build. it's like it doesn't respond at all. am i missing something?

Comment
Add comment · Show 5
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 geronika2004 · Feb 27, 2013 at 08:33 AM 0
Share

There are a lot of things to check, it's better you to check your scripts separately for Android. (for example: mono evaluation does not work on android, other net libraries also may not work)

avatar image Auggie · Feb 27, 2013 at 09:35 AM 0
Share

thanks for the response. further analysis gave me a hypothesis that it's not the scripts. they are really simple and has worked well the other day. i think it's the NGUI that i am using. the scripts that are not working are attached to them. i tried transferring the scripts to other gameobjects aside from NGUI and they work...it seems that compiling them deactivates the NGUI or something... does anyone know why this is?

avatar image Graham-Dunnett ♦♦ · Feb 27, 2013 at 01:33 PM 0
Share

Use adb logcat to get the crash report from your device.

avatar image Auggie · Feb 28, 2013 at 12:46 AM 0
Share

i tried making a standalone build. same problem. on the development console it says: "NullReferenceException: Object reference not set to an instance of an object."...the object being NGUI and i am not instantiating it. it's already on the scene. and it says that to every line of code in the scripts attached to the NGUIs

avatar image Auggie · Feb 28, 2013 at 03:37 AM 0
Share

thank you for all your responses! it really helped me think out of my box. hehe...it's working now! ...sort of. i changed every NGUI that i have, delete the old one and placed the scripts on a separate gameobject. i just assigned the gameobjects i use on the script. my only problem now is that the buttons are not working. but i'll get to that later. thanks again! ^_^

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Ahisical · Feb 28, 2013 at 04:18 PM

Check it out on blue stacks first, so that you make sure that your phone is not the problem.

Comment
Add comment · Show 1 · 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 Auggie · Mar 01, 2013 at 01:44 AM 0
Share

thanks! i tested it on other phones as well. same problem, though.

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

NGUI buttons stop responding after game loses and regains focus, on Android Galaxy Tab 2 1 Answer

Please help with scroll 0 Answers

how to access and modify my existing database made by DB browser for SQLite in unity after build 0 Answers

NGUI objects black color after build into phone 1 Answer

Android version won't load when I remove/reduce texture in scene 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