Search Unity

[Tutorial] Create a compass and objectives with uGUI

Discussion in 'Community Learning & Teaching' started by Yecats, Nov 17, 2021.

  1. Yecats

    Yecats

    Joined:
    Jul 13, 2014
    Posts:
    69
    TUTORIAL | GITHUB REPO

    Create a compass and objectives with uGUI
    Keeping players engaged in your game can be a challenging task. For some games, guiding the player towards key objectives is incredibly important and can make or break engagement. A popular approach is to provide a compass that has icons overlay the direction that they should move.

    In this tutorial, you will create a general compass that has an overlay of gathering objectives for the player to complete. When the player reaches an objective, a UnityEvent is raised which will equip the new equipment and destroy the ‘dummy’ world objective.



    Learning Outcomes

    1. Work with uGUI components, such as canvas, image, and masking.
    2. Rotate a repeating texture based on the user input.
    3. Create a prefab.
    4. Use UnityEvent to call a custom method to handle when an objective is completed.
     
    Last edited: Oct 13, 2023