Search Unity

Question Image's will now show on play

Discussion in 'UGUI & TextMesh Pro' started by RubenVanOostveen, Sep 28, 2020.

  1. RubenVanOostveen

    RubenVanOostveen

    Joined:
    Jul 31, 2020
    Posts:
    91
    This is what it should be:
    upload_2020-9-28_20-18-17.png
    (I was too lazy to make a separate black bar for the bottom that's why it's sideways)


    This is what it does:
    upload_2020-9-28_20-19-40.png

    What is the problem? I would really like if someone would know it and help me out!
     
  2. JuliaP_Unity

    JuliaP_Unity

    Unity Technologies

    Joined:
    Mar 26, 2020
    Posts:
    700
    The component for image in UGUI is called "Image", "SpriteRenderer" is for 2D which is not UI compatible. If you right click on the Hierarchy View and select UI > Image it'll create a Game Object with the right component for you.
     
  3. RubenVanOostveen

    RubenVanOostveen

    Joined:
    Jul 31, 2020
    Posts:
    91
    Thank you I forgot that. You saved me!