0

I Have hexagon sprites over Image and in back my screenshot image but Here, problem is my image shape square but i want try to fix in hexagon shape

So what i do ? please give me any suggestions

frame without image:

frame with image:

frame image

Nikunj Paradva
  • 15,332
  • 5
  • 54
  • 65
Sanjay Hadiya
  • 864
  • 9
  • 21

2 Answers2

2

You can have a look at the following blog post: https://subscription.packtpub.com/book/game_development/9781785885822/1/ch01lvl1sec13/adding-a-circular-mask-to-an-image

Basically, you create your hexagon shape in, for example, Gimp, fill it with white color and leave the rest transparent. Be sure to add the alpha channel to your layer. Export as a PNG and apply it to your sprite with the correct unlit transparent shader.

gian-luca
  • 23
  • 2
1

Create UI Panel And ADD COMPONENT

  • Image
  • Mask

In Image Component You set Your Any Shape's Image

And Also Add One Image Into Panel That you mask in this Shape

enter image description here

Check it out for more information https://youtu.be/g3gpXmo8zRo

Community
  • 1
  • 1
Nikunj Paradva
  • 15,332
  • 5
  • 54
  • 65