Quantcast
Channel: Latest Questions on Unity Answers
Viewing all articles
Browse latest Browse all 171066

DrawTexture simpleproblem

$
0
0
Hi! I've never used DrawTexture before, but from the unity documentation i'm not sure where i'm going wrong. Thinking perhaps maybe I'm loading a wrong type of image or size? The problem is it seems to start low down in the Y axis, like as if my drawTex... was (screen.width..etc... , 50) instead of 0. My image is 512 x 680 and my image is a png. GUI.DrawTexture(new Rect(Screen.width / 2 - aTexture.width / 2, 0,512,680),aTexture, ScaleMode.ScaleToFit, true, 0); any help with this would be great, thanks guys!

Viewing all articles
Browse latest Browse all 171066

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>