Using a UI Mask to make the minimap circular in shape

One way to make the minimap stand out in the UI is to make it circular. We can do this easily by adding a UI Mask based on a circle:

A good way to make the minimap stand out in the UI is to present it as a circular shape, do the following:

  1. In the Project panel, select the circleMask file in the Textures folder, and in the Inspector ensure the Texture Type is Sprite (2D and UI).
To change a Texture type to Sprite (2D and UI), select the file in the Project panel, then in the Inspector change its Texture Type to Sprite (2D and UI) and click on Apply to confirm the changes.
  1. Ensure the  ...

Get Unity 2018 Cookbook - Third Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.