Help with Draw.Texture examples
I'm unclear about how to use Draw.Texture. I'd like to array the same texture (or tile) to create a specific line type.
This Renders 1 Texture :
Sprite sprite = Resources.Load(spritePath) as Sprite;
Draw.Texture(sprite.texture, new Vector2(1, 1), .25f);
This Renders Nothing :
Draw.Texture(sprite.texture, new Vector2(1, 1), .25f);
Draw.Texture(sprite.texture, new Vector2(2, 2), .25f);
This Also Renders Nothing:
for (int i = 0; i < 10; i++)
{
Sprite sprite = Resources.Load(spritePath) as Sprite;
Draw.Texture(sprite.texture, new Vector2((float)i, 1), .25f);
}
I saw a post about using the Rect overload for setting uvs, but haven't had any luck on my own. Any help would be greatly appreciated.
Freya,
It looks like the problem was related to GPU instancing. If I disabled that, then it rendered the textures as expected. Here's the strange part (and I'll post this over in the Render On Build mega-thread)...If I changed the "Quad Interpolation Quality" setting from MEDIUM to LOW, then the textures work with or without GPU instancing on.