Search Unity

  1. Looking for a job or to hire someone for a project? Check out the re-opened job forums.
    Dismiss Notice
  2. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Simple method to draw rotated Texture2D or sprite

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

  1. Bomzj


    Nov 11, 2013

    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) ?