UI is not aligned properly. – #2 by slackmoehrle – Cocos Creator


Hello everyone.
I’m enabling both fit-width and fit-height in the game and the background image is larger to avoid black spaces. I have added a test button element, (see the editor image below)
but when I run, the button alignment is changed(see the images below)

ipad1
This happens because the canvas doesn’t fit the entire screen, but is there a way to place the UI elements properly without changing its alignment? or fit the canvas to entire screen?
cocos creator version: 2.4.4
demo project link: GitHub – maheshnnaik/cocos-creator-test
Thank you



Source link

More To Explore

Share on facebook
Share on twitter
Share on linkedin
Share on email