Search Unity

  1. If you have experience with import & exporting custom (.unitypackage) packages, please help complete a survey (open until May 15, 2024).
    Dismiss Notice
  2. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice

RawImage is not showing in GamePlay but showing in Inspector

Discussion in 'UGUI & TextMesh Pro' started by astechnolabs, Jul 25, 2021.

  1. astechnolabs

    astechnolabs

    Joined:
    Jul 11, 2021
    Posts:
    24
    Hi,
    I am facing one issue in Showing image, and I'm not sure why. I'm probably missing something obvious, but it's my first time using them.


    I used RawImage for getting dynamic image from database. I can see image in "inspector panel". but not getting show in gamePlay area. here is a screenshot.


    download.png download (1).png
     
  2. CorvusUltima88

    CorvusUltima88

    Joined:
    Jun 22, 2021
    Posts:
    5
    any luck with this ?
     
  3. astechnolabs

    astechnolabs

    Joined:
    Jul 11, 2021
    Posts:
    24
    yes, @CorvusUltima88 , I had solve this using use
    canvas
    as parent of rawImage
     
    of_mars and CorvusUltima88 like this.
  4. g5fighter

    g5fighter

    Joined:
    Feb 19, 2018
    Posts:
    1
    Short answer:
    Put RawImage anchors to strech.

    Long answer:
    I was having the same problem, in my case something very curious was happening because in some elements that used RawImage they worked and others didn't with practically similar conditions. That's when I realised that in one I had set the Anchors to Strech, and in others a fixed size. I changed them to strect and that was it.
     
  5. of_mars

    of_mars

    Joined:
    Sep 2, 2023
    Posts:
    1
    Thanks for the update on this, it helped me out today
     
    astechnolabs likes this.