Hi, this is such a basic question that I think it falls below what would normally be asked on here or what is shown in the tutorials (I’ve looked at many tutorials but admittedly not all so forgive me if there is one dealing specifically with this). I’m trying to set up a UI Mask that has an irregular edge to it (as shown in one of the tutorials), in this case say a bullet hole over a button.
I’ve no problem with UI Masks that are simply rectangles and have done so several times but I don’t know what kind of image I need to provide that will show the outline of the bullet hole but all the button to be accessible/visible in the ‘hole’ portion of it. I hope that makes sense. In other words, like in the Unity UI Mask tutorial there is a mask that uses a ‘checkmark’, how would I make that checkmark image to use?
Sorry if this is too basic but code is my forte, not this type stuff
Thanks in advance
erik
The image you need will have to be in a format that supports transparency, such as PNG. The transparent part of the image will be what’s hidden by the Mask component, and the opaque area will be visible.
How you make the transparency depends on the image editor you use. Probably best to look for tutorials on transparency (sometimes called Alpha layer/mask) for whichever program it is since they all handle it differently.
You can also look for free images online that are already what you’d want, just make sure they allow use in commercial products if you intend to sell the game.