Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

DPad Controller with new Button

$
0
0
I'm moving my old UI to the new one, and I got to my DPad controller. So basically, my DPad is a rectangle that is divided in 4 triangles. I used a awesome script provided by the community to do so RayCastMask.

View attachment 111588

The game is for mobile, which means touch input. On my old UI, I would test if there was a touch on the screen and if it hit any of those triangles. So basically the user...

DPad Controller with new Button

Viewing all articles
Browse latest Browse all 1466670

Trending Articles