Hi everyone,
I am developing a vertical 2D game (Design Resolution: 720x1280) using Cocos Creator v3.8.x. I am struggling with an issue where black bars (borders) appear on the sides or top/bottom when previewing on different devices (like iPhone X or iPad).
What I have tried:
- Project Settings: I’ve experimented with “Fit Width” and “Fit Height” but it only solves the issue for one dimension; the black bars still appear on the other.
- Widget Component: I added a Widget to my Background Sprite and set Top, Bottom, Left, and Right to 0, but the background still doesn’t seem to fill the entire screen on some resolutions.
I want my Background Sprite to always fill the entire screen (bleed out) regardless of the device’s aspect ratio
Any help or a sample hierarchy structure would be greatly appreciated!