Customizing Module UI

Introduction

This is a tutorial to override the default UI that comes with our packages. We will override the leaderboard UI with our leaderboards package in this example.

Instructions

Basic Steps

  1. Prepare a folder to store the new prefab variants in your project. For this example, we will be using Assets/PrefabVariants

  2. Navigate to the prefab that contains the package’s UI

  3. Drag and drop the prefab to a scene in unity

  4. Drag and drop this prefab instance from the scene to the folder you created to store your prefab variants

  5. When the dialog opens, select Prefab Variant option

  6. Now you have a prefab variant that you have complete control over. You can open and edit that prefab variant.

  1. Since in this example we are overriding leaderboard UI, we may also need to follow the same steps for LeaderboardEntry prefab. Notice how the newly created Leaderboard Panel prefab still has reference to the original LeaderboardEntry prefab provided by the package

  • Follow the same steps to create a prefab variant of Leaderboard Entry prefab
  • Change the reference in the Leaderboard Panel prefab variant, from original Leaderboard Entry prefab to the new Leaderboard Entry prefab variant that you have just created
  • Now you have full control over all leaderboard UI