Can't set source image for UI image

This is as simple as it gets. :slight_smile: How do I set a source image for a UI image?

I cannot drag and drop it from assets to source image. Also when I press the circle next to source image I get a very limited amount of images I can choose from, how do I add my own images here?

7 Likes

Make sure that your textures are set to “Sprite (2D and UI)” when using for 2D or UI.

44 Likes

Thanks! That solved it!

3 Likes

Thanks So Much

how?

In case you have not found a solution already, just click on the image → at the Texture Type area → click the drop down menu and select Sprite(2D and UI).

14 Likes

Can also use Raw Image instead of Image Component

No you need to use image not raw image because it does not have a option for source image.

Thank u

Thx

Thank you so much, sir.

thank you so much it helped me.

hello, i cant find the texture type area, can you help me?
thx

Hello, you have to select your image and change the texture type area.
Your image have to on directory Assets

Thanks. In case the answer was unclear to anyone finding this (as it was to me), the setting you’re looking on is not on your Image component, but your asset itself, seen through an inspector when you click on it in your assets.

4 Likes

Thanks

thanks:)

texture - sprite BUT in Botton in image not inserted. not working

Thanks!

Thank you very much