- Home /
How to make a textured quad look like sprite?
I want to create a scrollable panel. In it there should be some sprites.
I've found a depth mask shader which can make elements invisible outside the panel. But it works only with meshes. So I created a Quad, added a copy of my sprite to it as a texture, put it to the scene and set its shader to Sprites/Default.
The result differs.
The left one is Quad and its picture is blured.
Switching Quad to Plane produces the same result. As well as choosing shaders from Unlit or Transparent.
Yes, I tried GUI, but on devices with different screen dimensions the images move to wrong place. Also, I haven't found a way to convert world Rect to GUI Rect, only ScreenToGUIRect which doesn't help.
Answer by RedLord · Jul 27, 2014 at 12:16 PM
I did the following:
1)Copied the sprite circle.png and named the copy circle2.png
2)In circle2 import setting set Texure Type to "Texture"
3)Added circle2 to quad
4)Deleted circle2.png in windows explorer, made another copy of circle.png, also named it circle2.png and then returned to Unity.
5)Now I have a quad textured with sprite.
Your answer
Follow this Question
Related Questions
Unity 2018 UGUI Android Sprite Textures Not Rendering Correctly 1 Answer
Texture type -> Advanced -> Mesh type: how it works? 1 Answer
How to remove gaps in a repeating texture? 2 Answers
Atlas size based on sprite 0 Answers
Error creating texture 0 Answers