Hi all,
I’m developping a game for Android with a basic camera rotation system. I’m using InputTouch to process it.
However, when I add an interface to the viewport, InputTouch still gets through the widget even though the widget’s visibility is set to Visible. I would expect InputTouch not to fire. If I stack 2 visible widgets (parent and child), then it doesn’t run.
Hi there,
It’s very odd that you get the desired behaviour once you have a nested widget. It might be worth sharing some of your code around how the widgets are added to get to the bottom of that.
In the meantime though, when you bring up your widget interface you could call Set Input Mode UI Only to see if this gives you the desired behaviour. You would want to make sure that once you want the player to be able to make game input again that you call either Set Input Mode Game Only or Set Input Mode Game And UI.
Thanks,
Hayden
Well, I basically had a strange setup, which I cleaned up. After that, my solution was to override OnTouchStart and to make it return Handled.