Hi all, I’m trying to draw a cross hair on screen for my game but it just appears as a black square in editor and completely red as a material. Any suggestions?
Thanks.
Hi all, I’m trying to draw a cross hair on screen for my game but it just appears as a black square in editor and completely red as a material. Any suggestions?
Thanks.
Can you post an image of how you’ve set up your material?
Check this answer. Also if you want to use texture in UI - change texture group to UI in your texture setup.
Thanks. I won’t be able to check until later, but hopefully it’ll work.
There’s a link at the bottom of the post.
Didn’t work.
Seems like there is an alpha channel in your texture, but it’s not being used in the material. You need to set the blend mode in the material to translucent, and connect the alpha pin of the texture sample to the opacity input.
It worked! Thanks.