Search Unity

Question Sprite vs Image vs Raw Image

Discussion in 'UGUI & TextMesh Pro' started by seoyeon222222, May 12, 2021.

  1. seoyeon222222

    seoyeon222222

    Joined:
    Nov 18, 2020
    Posts:
    187
    As far as i know, there are three ways to use images in Unity
    - Sprite (Sprite renderer)
    - Image (UI Canvas)
    - Raw Image (UI Canvas)

    I wondered when and how to use each method.
    I have looked up reference documents and forum information to resolve my question,
    but I have yet to clarify my question.

    Q1 ) Below is the information I understand. Is there something wrong?
    Sprite : available anywhere by adding Sprite Renderer component
    Image, Raw Image : available only under UI Canvas object
    ----
    Sprite, Image : only use Sprite Image == easier to work(like sliced..?) / uses a lot of memory
    Raw Image : any type of Texture == just for display / make extra draw call
    ----


    Q2) So exactly when and what is appropriate to use?
    I understand that a particular method is advantageous in performance under certain conditions.
    I could get some piecemeal information, but frankly it is not clear what "standard" to use.



    Q3) If one source is needed in two cases(Spirte / Defalut Texture Image)
    Do I have to import the same source twice and change each setting?
    Or is there any other way?
     
    JeongYeonJi and anhnguyen like this.