Draw Material Simple (in HUD) not drawing in Mobile Preview

I am creating a custom HUD within Blueprint. I am using the Draw Material Simple node (see attached image ‘draw material simple snapshot’) to draw my HUD to the screen (note: the attached image shows the incoming Execution wire for the node as not hooked up; this isn’t the issue; I had already disconnected the node when I took the snapshot).

When playing my game in a new Editor Window all the materials I want to draw to the screen are drawn; however, when the game is played in Mobile Preview they are not drawn. I tried using a Draw Texture Simple node instead, and it works perfectly.

Is there some setting I’m missing in the Material (see below) or does Draw Material Simple not work on Mobile for HUDs?

On the bright side, this happens on mobile devices too. So at least we know the mobile preview is accurate. On the other hand it doesn’t work and I’m stuck too so that’s not so great.

Has anyone else encountered this issue recently?

Hi kylawl -

Is it rendering anything in the Mobile preview, a default texture, or just nothing is appearing? In either case look into the session’s log file to see if there is anything listed as an error, let me know. I am working on recreating this setup to see if I can get the same error.

Thank You

Eric Ketchum

When I had tried this, nothing was appearing in the Mobile Preview. I’ve since moved on to drawing Rects in my HUD, at least for prototyping purposes; and I know that works just fine.

Hi Eric,

Nothing was showing up at all, so I did the same thing that Jonathan did (Draw Rect).

Good news though, I just went back to test it again now with 4.2 and it works, so problem solved.

Thanks.

Kyle

I’m glad it’s working now. Thanks for updating us that it’s working with the new release.

I’m having the same issue where in the editor draw rect works and on the mobile draw rect does not work,
found no answer to that in this thread even though it was the first thing that came up on google,
if anyone know how to get draw rect to show up on the phone I’d appreciate the help.