Skip to content

Custom mesh collider, HexagonRenderer, sprite masks, sound effects and control

License

Notifications You must be signed in to change notification settings

katelevshova/unity-2d-custommesh-mask-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DEMO

Click on the image below to see the demo video.

HOW TO

1. Draw Hexagon

  1. Click button "Draw Hexagon Mesh" to draw a hexagon.
  2. Use double-click inside the Hexagon area to change its color to any random color.
  3. Make sure that double-click works only inside the Haxagon. Try to click in the corners of the transparent Rectangle area in which the Hexagon is drawn.

2. Mask

  1. Click button "Change Sprite Mask" to switch btween different shapes - hexagon, I, 💜, Unity, circle.

3. Sound

  1. Use Checkbox to Mute or UnMute the sound.
  2. Use Slider to gradually decrease/increase the volume level of the sound. Notice that it doesn't drop but is transitioning smoothly.
  3. The volume level is saved to the PlayerPrefs so it would be restored after application restart.
  4. Click button "Play Narrator Sound" to play 2 short sounds with "Duck Volume" effect - the level of the background music decreases while playing the narrator sound.

About

Custom mesh collider, HexagonRenderer, sprite masks, sound effects and control

Topics

Resources

License

Stars

Watchers

Forks

Languages