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 /
avatar image
0
Question by kpagcha · Jan 16, 2016 at 08:13 PM · androidscripting problemvuforia

Half of the scripts functionalities not working in Android

So the weirdest thing is happening to me.

I am developing a language learning game with Vuforia. I am going to tell you what the game is supposed to do (and does in PC): you launch the game and the first questions appear. You are given 4 choices and depending on the audio clip that's played (saying a word in some language) you pick a choice and answer.

I have an empty game object called _GameController with two scripts: Game and EasyMode. I modified the script execution order so Game is the first one to be executed and then EasyMode. The reason is that EasyMode needs data retrieved in Game.

So when you launch the game you get this: four word choices to the left of the screen and the score in the top right corner. Also you hear the clip. In the middle of the screen there are two UI texts saying "CORRECT!" and "INCORRECT..." but in the EasyMode script I set the text value to empty string in the Start() method (or some init function it calls). These, of course, set to the proper value when you answer to the question.

So far this is not the full funcionality but I got it working. And it worked. Nice. Now let's test in in Android.

This is what happens when you open the game in Android: you see two overlapped texts in the middle of the screen saying "CORRECT!" and "INCORRECT...", the score to the top right corner, no four choices to the left and no audio clip is played. It's like it ignored half the lines in my scripts... But the scripts are there, and if I, for instance, change the text in the score and say "YADDA YADDA" or set it to the length of some data array I use to store the questions of the game the text is showing the correct number in the phone app. So it's not like it's ignoring the script COMPLETELY.

So what the heck?! I am pretty new to Unity or Vuforia but I have been using for quite some time and I have done plenty of (simple) Unity apps, with and without Vuforia, and this NEVER happened to me.

Am I missing something?

Please help I am desperate :(

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
0

Answer by Dudicus · Jan 17, 2016 at 03:42 AM

If you are checking a published version edit the Android build settings. Go to File, Build, Player Settings, find Android and fix the variables that may be causing the "error".

Hope it helps! @Dudicus

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 kpagcha · Jan 17, 2016 at 11:04 AM 0
Share

I don't understand. What's what I should be looking for? Variables in player settings? Seriously you lost me, I don't know what the player settings has to do with the variables. And how does it, whatever you mean, explain that in PC it works as expected but it doesn't in Android?

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

51 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

Related Questions

LoadScene not working 0 Answers

How to move a Gameobject in an Android Game with ScreenLandscape? 0 Answers

ScriptedImporter in Android build 0 Answers

Unity and Vuforia on Android: Could Not Load Video from OBB 1 Answer

Camera display when using it to build and run in android 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