- Home /
The question is answered, right answer was accepted
new GameObject is not work in Android?
In my game, i create GameObject in script. but this code is not work.
GameObject tigerGameObject = new GameObject("Tiger");
after i call GameObject.Find("Tiger"), it return null. of course, it's perfectly work in editor.
and i set scene to empty object and set it's name Tiger, android has no error. what's problem?
*now, android logcat has no error. but my game is not work in android. but run in editor. i know it's so ambiguous, but anyone see this problem? not error but not work in android?
i load object file for txt file. it has data of vertex. file read is now work in android?
I am sure you have an exception somewhere in your code in Android build. Try using exception handling in the parts where you change for Android. For example, you said you read vertices from file can your build find the txt file?
oh, you're right. i change txt file to text asset, all right. i cant understand why logcat dont throw error....
Follow this Question
Related Questions
SystemInfo.deviceUniqueIdentifier changes value from Unity 4 to Unity 5 0 Answers
How to set mobile control and scale in size in android setting? 1 Answer
How to open a webview in unity 5 UI, compiling for android? 0 Answers
Error: NDK 14.0.3770861 is incompatible with IL2CPP & IL2CPP requires r 10e (64-bit) 1 Answer