Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

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.