Menu visibility disabled through "SetActive=false" doesn't work on Android

Hello All!

First time developer (literally knew NOTHING about code) here, I built a game that’s already launched on iOS. Currently porting it to android and having problems with the menu system. Menu canvases don’t display properly using “SetActive” on device. Please see attached video that better explains problem.

I’m currently using the emulator as I don’t have a physical device (should be getting one in the next couple days) and hoping this is an emulator issue, but figured I’d get out in front of it in case it’s not. Anybody know what’s going on here? Thanks in advance!

Josh

I’ve gotten my game running on two different Android devices. Problem persists on device. Anybody have any insight? Thanks!

Josh

Could you please post the script responsible for deactivating the menus?

Hi NinjaCat, Thanks for the response, but think i’ve figured it out. After a LOT of trial and error I’ve figured out several things causing the issue and more…

  1. Android doesn’t like CanvasGroups for some reason
  2. Ironically, Android doesn’t like Google Analytics. At least not v4, going to be reverting to v3. Had broken code everywhere.
  3. Android definitely has to run things in a more specific order than both the editor and iOS do. Found I had to reorder a lot of operations in order for things to run correctly.

Again, thanks for the response. You moderators definitely get to everyone!

What was the issue with CanvasGroups exactly? If it worked on iOS but didn’t on Android we’d love a bug report :slight_smile: