Hi!
Is it possible to create a GUI.DrawTexture with only a part of a texture like it was done in Minecraft? So that you don’t have to create hundreds of small images?
So for example like this:
GUI.DrawTexture(new Rect(...), texture.getPart(20,40,40,40));
There is a .DrawTexture variant which does that, as well. http://docs.unity3d.com/Documentation/ScriptReference/GUI.DrawTextureWithTexCoords.html
– LoiusOk, your method is way easier to use! Perhaps my answer is better performance-wise, since the creation of the smaller textures only has to happen once. (If used wisely.)
– UnitraxxYep, it's definitely a trade of some sort. I've never done any tests on performance, but it does seem like drawing a whole texture would be faster than drawing a piece.
– Loius