This is the low drawcall DrawTexture!
And, some functions included.
Asset Store Link:
https://www.assetstore.unity3d.com/#/content/12732
Features:
- Interface like GUI.DrawTexture
- 1 Drawcall per Texture/Object
- Draw on 2D Screen or 3D World
- Draw Numbers/Text easily
- Support for Alignments
How to use (C# Script):
Use GUI:
void OnGUI () {
Rect pos = new Rect(0,0, 100,100);
Rect texCoord = new Rect(0,0, 1,1);
GUI.DrawTextureWithTexCoords(pos, texture, texCoord);
}
Use DrawTextureExt:
DrawTextureObject GUIext;
void Start () {
GUIext = DrawTextureObject.CreateDrawTextureObject(texture, /*maxCount=*/100);
}
void Update () {
Rect pos = new Rect(0,0, 100,100);
Rect texCoord = new Rect(0,0, 1,1);
GUIext.DrawTexture(pos, texCoord);
}
Use DrawTextureExt for 3D:
DrawTextureObject objDrawTex;
void Start () {
objDrawTex = DrawTextureObject.CreateDrawTextureObject_For3D(texture, /*maxCount=*/100, parentObject);
}
void Update () {
Rect pos = new Rect(-0.5f,-1, 1,1);
Rect texCoord = new Rect(0,0, 1,1);
GUIext.DrawTexture(pos, texCoord);
}
Draw on 2D Screen / 3D World
Draw many sprites 1 drawcall
Alignments
Support: whitedev.support@gmail.com



