For example I have one image named ‘coin’. Texture Type is Sprite and it is ok when I use it like to Sprite Render component. But… when I try to using same file to RawImage component in my UI, it looks strange.
What I wanto to do? Just to have only one file and use this file in game and UI also. Any ideas?
Yeap, You are right! I do not know why I used RawImage. Probably some time ago I had the opposite situation - use Textures for Image component and it looks bad so I change component to RawImage.
Thanks for help!
@fffMalzbier - It appears the strangeness in the OP may be due to no padding in the sprite as shown in the inspector window above rather than the change in image file type.
Please correct me if I’m wrong. Thanks for clarifying.