- Home /
Question by
Ambrose998800 · Mar 16, 2016 at 07:59 PM ·
drawtexture
DrawTexture in original size
For a grid inventory: How can I make a texture is shown in origin size?
Texture size: 300x300, containing a grid with gridsize: 30x30 (10 to 10 gridunits).
DrawTexture window: 120x120
If I use StretchToFill, the 300x300 texture is squeezed inside 120x120 pixels (gridsize ~3x3). If I use ScaleAndCrop, the texture is cropped left and right, up and down. If I use ScaleToFit, same as in point one (too small gridsize)!
How can I draw a texture 300x300 cropped to the size 120x120, that there is 4x4 square of 30x30 gridsize?
Aspect Ratio just makes the grid smaller.
Comment
Your answer

Follow this Question
Related Questions
Another GUI question. HealthBar 1 Answer
GUI.DrawTexture Slow in Editor 1 Answer
Too many DrawTexture calls 0 Answers