GUI.DrawTexture

Hey guys,

Does anyone know if we can use more than 1 texture in a DrawTexture call ? Like, having an imagemap in a texture, and some way of assigning the uvmap coords of the texture, so we can display just a little portion of the texture ?

thanks,
Bruno

You can show any rectangular portion of a texture with GUI.DrawTexture by putting it inside a group. You should make the group rectangle equal to the size of the rectangle you want to show. The DrawTexture call inside the group will use coordinates that are relative to the group rectangle. You can use negative coordinates so that the texture starts outside the visible area and thereby show any rectangle you like from the image.