Search code examples
androidbuttonunity-game-engineposition2d

Unity2d buttons appears on the center of my phone screen . But i put them in the corner


In my unity2d project i added some gui buttons and arrange their position to corners while checking on 'game' window. But when i install my game on my phone, buttons changes position and appear on center of screen instead of corners.How can i solve this? If needed i can upload some ss.

where it supposed to appears

where its appears

here is a example button of mine app


Solution

  • You should change type of UIScaleMode to Scale With Screen Size in Canvas Scaler component. And then, change pivot of your buttons (if a button on the left bottom part of a screen, then pick LeftBottom and so on).