Search Unity

Simple method to draw rotated Texture2D or sprite

Discussion in '2D' started by Bomzj, Nov 14, 2013.

  1. Bomzj

    Bomzj

    Joined:
    Nov 11, 2013
    Posts:
    18
    Hi,

    I am pretty new to unity3d and looking for simple explanation how to rotate texture or sprite. Currently i am porting 2d xna game using UnityXna plugin which uses static GUI calls for drawing in OnGUI method . There are some issues with that approach such as GUI draw calls do not use antialiasing so visually you see jerking sprites on a screen. I hoped to find in the new unity 2d workflow something handy like DrawSprite(texture, x,y, origin, rotation). I need to draw manually sprites with rotation. So what options do i have for that (also including possible using of GUI methods) ?