image for joystick by percentage of screen?
hi guys how i can scale ui image by percentage of device screen?
Answer by v01pe_ · May 20, 2016 at 09:02 AM
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
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)
the problem mate is that @ unity3d image is big but on my phone its small :)
So you mean change/use a different resolution for the image depending on the device?
Your answer
![](https://koobas.hobune.stream/wayback/20220612081140im_/https://answers.unity.com/themes/thub/images/avi.jpg)