Can't get Raw Image to display in-game.

Hey guys, trying to experiment with displaying an image in 3D space in my game. It’s not showing up, and I’m not sure why. I’m probably missing something obvious, but it’s my first time using them and Google/forum searching wasn’t helping. Here’s what I have:
2320943--156487--upload_2015-10-1_12-59-21.png
…and there’s nothing there:
2320943--156488--upload_2015-10-1_12-59-39.png

Edit: Thought I should mention that I’ve tried a few different images, some with alpha, some without, and none of them display at all.

The width and height is 1. Is it perhaps 1 pixel in size?

It might be, but I started with the default of that being 100, and that didn’t do much for me either :).

Bump - still can’t figure this out. Anyone?

Well, random remarks:

It looks like the blue axis is pointing the other way, making it show it’s back.

What are the canvas settings and what type of texture is “Modifiers_accuracy”? The icon may indicate a sprite - RawImage expects a texture2d and i’m not sure if a sprite fits in it.

UI displays a speed of 10 km/s; if that’s 10 km/s in unity coordinates as well (hopefully not), the image would probably be terribly far away and not visible due to that.

Does it show in the scene view? Pressing T (or R? which was it. Q/W/E/R/T switch selection types) while a RectTransform is selected may give some other visual assistance.

Hi,

I am facing same issue, 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.

Rather than resurecting a post from 2015 which had no solutions, you’re much better off starting your own in the correct UI forum here.

1 Like

Ya right. Thanks @MelvMay

Melv its sunday. Never off-duty?

It’s hard to see but it seems the Color is set to white with alpha = 1. Maybe try an alpha of 0?

2 Likes

Actually I tried with alpha 0.5 & 0 too, but it’s not issue it’s just for showing position of rectangle., is there any other setting for RawImage?

I have just placed a raw image under the canvas of my project, assigned a png and it just shows up. So in general it should work. Some ideas what you could check:
create an empty project, create a raw image and assign the same file to see if it works (would indicate that something with your setup is wrong).
Test if other images show up.
See the documentation what the parameters do and “play” with them.
Try a “regular” image instead.
Play with sort order.
But general it’s hard to assist debugging UI stuff. But melv is right that the UI subforum may yield better assistance.

Thanks @exiguous . I will try these things. and had also put this question in forum : RawImage is not showing in GamePlay but showing in Inspector