Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 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 /
This post has been wikified, any user with enough reputation can edit it.
avatar image
0
Question by vzdaemon · Jul 24, 2013 at 02:16 PM · androiderroreditor

Game works differently on android

So i have this complete game that works fine on the unity editor. You launch the game, click/tap the Play button, and you enter a scene in which cubes pop up. Now when i build&run it to my galaxy s2 it doesn't work the same, i mean you enter the game, tap play and enter the scene, but the cubes don't pop up and the game just doesn't start. so i put i GUI.Label at the game scene and debuged with it (i programmed it to change text each if it enters) and it doesn't change text. There is also this one if statement that is does enter, so i programmed it to change text when it entered that if statement but it didnt change while the if was still executing. I dont know what to do anymore, it simply ignores my text change line and i'm thinking it also ignores other lines. basically i have not idea whats happening and my code does work in the editor which means it's fine. Has anyone got any suggestions because this problem is just ridiculous.

thank you for reading and sorry for the long text.

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 Bunny83 · Jul 24, 2013 at 02:18 PM 0
Share

Actually your text isn't really long. You have to give us more information. Post the code you used to instantiate the cubes.

avatar image vzdaemon · Jul 25, 2013 at 11:14 AM 0
Share

here is a link to my code http://pastebin.com/phRvHezn . I've shaved off most of it that does work because it's long and irrelevant to my question. the output i get from it on mobile is this http://s8.postimg.org/qfrc0vvud/Screenshot_2013_07_25_14_09_59.png

but in the editor i get this

http://s14.postimg.org/sgxel9v7l/Untitled.png

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Graham-Dunnett · Jul 25, 2013 at 01:42 PM

The standard way to tackle this kind of thing is to use Debug.Log statements throughout your code, and then look at the log messages to see which bits of code are executed. On Android you'll need to know about adb logcat.

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

17 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

Related Questions

The type or namespace name `Editor' could not be found. 8 Answers

Error importing asset from google poly api in android build unity 0 Answers

Script works in editor, but does not work in build (Android) 1 Answer

Change Editor resolution for android devices. 1280x800 not selectable. 4 Answers

Animation stops Recast from working 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