hi guys how i can scale ui image by percentage of device screen?
Making an image expand to % of screensize:
- Menu: GameObject → UI → Image
- Set: Rect Transform - Anchor Preset (click on the image) - Stretch/Stretch
- Set: Left/Top/Right/Bottom - all to 0
- Set: Scale - whatever you like in percent [0…1]
- Set: Image - Source Image - to your image
- Read docu for more awesome
Loading different resolution of the same image depending on device:
This can be done using AssetBundle Variants. Find more about it on the AssetsBundle tutorial page (search for USING ASSETBUNDLE VARIANTS)