Canvas - canvas scaler - UI scale mode - scale with screen size
Canvas - canvas scaler - UI scale mode - screen match mode - expand
Panel - add component - aspect ratio filter - aspect mode - fit in prent
panel - aspect ratio filter - aspect ratio - *whatever aspect ratio you want* *16/9 or 9/16 or anything*
it worked for me. I made game in 9:16 aspect ratio, and when I open in 9:18 and 2:3 aspect ratio display, it does add black bars on edges.
let me know if you have any other method to make it work.
↧