Search Unity

Understanding Sprite & Texture

Discussion in 'Scripting' started by longbottomup, Apr 1, 2015.

  1. longbottomup

    longbottomup

    Joined:
    Nov 2, 2013
    Posts:
    49
    Hi everybody,
    I have a nood question, please tell me something: what's the difference between sprite and texture? What the better choice if I make a app to read comics? Thank you.
     
  2. mholub

    mholub

    Joined:
    Oct 3, 2012
    Posts:
    123
    Sprite is a section of an image. It is Texture2D + Rect which describes which part of Texture to use.

    It all depends on your needs. If you can pack lots of small images into big sprite atlas (Read: http://docs.unity3d.com/Manual/SpritePacker.html), you will get better performance.
     
    longbottomup likes this.
  3. longbottomup

    longbottomup

    Joined:
    Nov 2, 2013
    Posts:
    49
    Thank you very much.