Setup Width and Height to 100%

I set new picture in ImageSprite.
How to setup Width and Height to 100% for new picture?

100% of what? Canvas, Screen, Image Sprite dimensions, other ?

Width and Height for ImageSprite.
I set Width=-1 and picture resize to actual size.

Try width and height (of imageSprite) = -2 (fill parent) :wink:

This should fill the canvas with the image

hmmm, doesn't seem to work try setting to canvas height and width


Well, you do know the size of the new image, right?


Values in pixels. If the new image is not from the Media Tray (Assets) but loaded into the App at runtime, you can capture it's height and width by first placing it into an Image Component whose height and width are set to 'automatic'.