Forum rules - please read before posting.

AC joystick conflict with buttonsUi?

edited May 2024 in Technical Q&A

Hello everyone, a problem that I noticed when using UI buttons on the screen with the AC mobile Joystick is that the game on the cell phone simply doesn't work with the UI button. I did the test and disabled the Joystick and it worked again.

I tried to use botaoUI in the joystick hierarchy, on another screen, it also didn't help, I think there is a conflict with the joystick. I've also tried using an AC menu with the scene UI button, it doesn't work either.

In unity test mode it works but on cell phones it doesn't.

I'm using the latest AC update.

Comments

  • Where are the UI buttons positioned, in relation to the joystick, and is the joystick template from the Downloads section or installed via the New Game Wizard?

    The Joystick should only override behaviour when the mouse/touch is within its Touch boundary RectTransform, as assigned in the Joystick UI component. Is this the case? As this is a visual issue, any screenshots you can share to help illustrate the situation will be welcome.

  • The joystick model is in the AC download folder. As the InGame menu was not appearing due to some error pointed out in another topic, I decided to create a UI button to be a menu. But this problem occurs with any UI button if it has the Ac joystick. regardless of whether it is on the same canvas or not. In this case I have three canvas.

    In the unity program, clicking on the UI button with the joystick on the screen works normally, on the cell phone the UI buttons do not work.

    As you can see, this image is from the game installed on the cell phone. I left the menu button far away from the joystick buttons.

    https://uploaddeimagens.com.br/imagens/WUpYKIU

  • The eventSystem is in the scene outside the gameobject hierarchy, without the eventSystem the UI button does not work in Unity.

    https://uploaddeimagens.com.br/imagens/4Lls2c8

  • The EventSystem will spawn itself automatically if AC detects use of a Unity UI-based Menu, referenced by the Menu Manager. Is the InGame menu registered in the Menu Manager? If not, register it - and then remove the EventSystem, you should find it gets spawned automatically at runtime.

    The presence of the Joystick prefab alone should not impact on the ability to interact with other elements - I cannot recreate such an issue with a build on my end.

    If you've made changes to the JoystickUI prefab, try temporarily removing it and place the Download package's original prefab into the scene.

  • I managed to solve the problem, I deleted the joystick and imported the AC joystick again, but instead of deleting the second analog camera from the camera I disabled it. Now accepts clicking on buttons other than the Joystick

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.