- Home /
Destroying the instance of a gameObject on Android vs in Editor
When I test this line using the editor and Unity Remote for Android, it works... but this seems to cause the rest of the function to halt when exported as apk and running on device.
Destroy (selectedObj.gameObject);
selectedObj is a global variable that receives new instantiations. Each time it receives a new instantiation, I have the Destroy line to prevent having multiple instances..
How do you destroy and manage object usages of this kind?
Comment
Your answer
Follow this Question
Related Questions
What is the problem with the 2020.1.8 android module? 0 Answers
Fog not moving with camera on mobile build 0 Answers
android shader issue 1 Answer
How to destroy object by touch? 2 Answers
Destroy(gameObject); working in editor but not on android.. 0 Answers