Quantcast
Viewing latest article 1
Browse Latest Browse All 125

2d gui, 3d items and iPhone/iPad scaling...

I have a 2d game for mobile with a bunch of 3d stuff in it as well (it's a dice/puzzle game, btw). I've built the game itself using uGUI and then the dice are 3d with physics sim. I'm trying to get my game to scale properly to tablet as well. The uGUI portion scales just fine as is expected. The problem I'm running into is the colliders for the dice. When the UI scales, the colliders stay where they are and the dice roll off screen. My question: is there 1. a way of automatically moving the colliders when the aspect ratio changes or 2. a better way of setting up said colliders than a bunch of box colliders lined up with the uGUI boundaries?

Viewing latest article 1
Browse Latest Browse All 125

Trending Articles