- Home /
Question by
DarkSlash · Sep 18, 2013 at 09:01 PM ·
guitexturetexture2ddrawtexturepacktextures
PackTextures and DrawTexture
How do I draw a texture width the DrawTexture method that is packed with Texture2D.PackTexture?
If I can't, how is the way of drawing the packed textures??
Comment
Best Answer
Answer by ArkaneX · Sep 18, 2013 at 10:25 PM
You can use GUI.DrawTextureWithTexCoords.
texCoords parameter is not described properly in the documentation, but generally you have to use values which were returned from PackTexture. For example, to display bottom right quarter of your texture, you need to pass Rect(0.5,0,0.5,0.5)
Your answer

Follow this Question
Related Questions
Packing unity textures into atlases 0 Answers
Offset detail texture in c# 1 Answer
How to drawing 2 image in one Texture2d 1 Answer
Is there a way to cap the max mipmap level of a generated texture? 1 Answer
Tile and offset a Texture2D? 2 Answers