Fit a texture in UI?

Hello. I have a texture of 20/10 pixels and I want only the first ten pixels to show up on GUI.

The texture is not (and cannot be set) readable.

Is there a way to do this?

I’m not sure what you mean by the texture cannot be set readable, I don’t see that option for my textures. Are you talking about Raw Image? if so click Add Component > UI > Raw Image. The UV rect lets you pick what part of the texture shows up.

44048-texture.png