Search code examples
imageunity-game-engineimage-masking

How to set my Image Mask in Hexagon Shape in unity?


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


Solution

  • 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