hi
i hope a have good time
i want to draw this texture :
public Texture2D[] HouseText = new Texture2D[6];
with GUI.DrawTexture . but i don’t know how i can draw array of texture
help me
hi
i hope a have good time
i want to draw this texture :
public Texture2D[] HouseText = new Texture2D[6];
with GUI.DrawTexture . but i don’t know how i can draw array of texture
help me
Try this:
GUI.DrawTexture(new Rect(10,10,200,20), HouseText[chooseANumberBetween0And5]);
thanks for reply
i drawing texture array with this :
for(int i=0;i<6;i++)
{
GUI.DrawTexture(new Rect(i * 3,0,30,30),HouseText[i]);
}
i have another question .
i want to draw this array with move mouse .how can i do this ?
tanks
up