Sprite not filling screen in iphone mode
Hi!
I am using a sprite as my background, and it fits the screen perfectly in desktop mode. However, when I switch to portrait (iphone) mode, the image matches the width of the screen, not the height (it is very small and doesn't cover the whole background). I want the sprite to cover the whole background without stretching, so I want to fit the sprite to the height of the screen rather than width.
Selecting different "fill modes" does not change this -- I would like to use the "fill" mode, but it looks like the sprite is stuck on "fit" mode.
How can I fix this? Thanks!
Hi!
First - are you using a Screen Image for this? Make sure you are not using FixedSize:
Try checking both Full Screen and Capture Screen Region types.
Also if you are using some custom Graph Materials try giving a main texture a "baseTex" scripting name so material can handle image aspect correctly
If none of this helps - please share a screenshot of your setup or a project
Thanks!
Olha
Hi Olha,
I actually figured it out! I was using a segmentation controller script that was setting the background image to "fit", overriding my original image object settings.
Thanks for the help!