Hello,
- UI - 2D UI
- Target : Mobile
SCENARIO :I am trying to stretch a sprite to entire screen. I am able to achieve it but I think my method is wrong. It stretches beyond the screen size. If you look into this screen shot of the
hierarchy, the selected object has UISprite (Sliced) & UIStretchSprite.
REQUIREMENT : I want the image to strech exactly to the size of the screen. This way, I could implement this for store too.
PROPERTIES :UIStrechSprite : =>
Image Link Camera is the UI Camera;
style : Both
relative size : (100,100)
initial size : (1,1)
ANCHOR: =>
Image Link The Anchor containing this Stretch object is at CENTER
Half Pixel Offset : true
Relative Offset (0,0)
Pixel Offset (0,0,)
UIRoot:Scaling Style : Fixed Size
Manual height = Minimum Height = Maximum Height = 640
I think it is very simple to implement, but I just do not know how. If I have missed some info, kindly
let me know. I would happy to provide as much information as possible.
I appreciate your time & help.