- Home /
(Easy question)What am I doing wrong making my cross hair transparent?
I'm making a crosshair using Javascript to assign the picture to the center of the screen. This how ever isnt the issue, the picture sets an empty gameobject (which is the thing called 'crosshair' to the center of the screen. All I have to do is copy a picture of a crosshair into the object. I've done this, but now the parts of the picture which are supposed to be transparent are showing up as white. I foolded around by adding a mesh to the object then selecting the material to be transparant. What am I doing wrong? (picture below) P.S - 'Crosshair' = the empty object. And I do know I will need to re-size the picture later.
**Note that you can zoom in on the picture to make it clearer
Answer by PProductions · Sep 04, 2012 at 02:53 PM
You are better off using a GUI texture for something like this. However either way you need to make sure the image asset has transparency and is saved as a .png file.
Your answer
![](https://koobas.hobune.stream/wayback/20220613080615im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
crosshair scrip not working 1 Answer
shooting laser to screen middle doesnt work... 1 Answer
Rotate gun to mouselook 1 Answer
How do I make an object move? 3 Answers
How to let my gun shoot ?? 0 Answers