Hi everyone,
I have an onscreen gamepad/joystick canvas.
I used to have the joystick in every map, however I wanted it to stop appearing over AC's subtitles while the game is paused so I attached to AC's Menu system (Unity Prefab) and made it appear during gameplay, then deleted all the original joysticks in all the maps.
It works, however every time I change scenes the joystick breaks, meaning you can still move it around but the player doesn't move and it looks really glitchy. It's still active/enabled in Hierarchy though.
I wasn't sure how to go about this so was looking for help!
Thank you
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
The glitching looks like a re-draw issue, where that portion of the screen isn't being cleared properly. This may be down to the joystick, rather than AC specifically.
However, you needn't move it to the Menu Manager to prevent it from showing during cutscenes. A local object can be set to hide during this time by hooking into the OnEnterGameState / OnExitGameState custom events:
Thank you Chris! I attached it to my Joystick UI gameobject, I think I've done it wrong though
It disables on the subtitles like needed but then when its finished it enables and disables again?
Set the enabled value explicitly: