This tutorial will guide you through the steps necessary to integrate the Player Titles addon into your player prefabs in uMMORPG. Follow each step carefully for a proper setup.
Installation Steps:
-
Add PlayerTitles.cs to All Player Prefabs:
- Add the
PlayerTitles.csscript to all player prefabs.
- Add the
-
Assign the Player Title Component:
- In the player component, assign the
PlayerTitlesscript to the[component: Player Title]field.
- In the player component, assign the
-
Assign the Player in the PlayerTitles Component:
- In the
PlayerTitlescomponent, assign the player object.
- In the
-
Add the TitleOverlayPosition Prefab:
- Drag and drop the
TitleOverlayPositionprefab into the player prefab.
- Drag and drop the
-
Assign the TitleOverlay:
- In the
PlayerTitlescomponent, assignTitleOverlay.
- In the
-
Add UI_PlayerTitles to the Canvas:
- Drag and drop the
UI_PlayerTitlesprefab into the Canvas.
- Drag and drop the
-
Add ButtonPlayerTitles to the ShortcutsPanel:
- Drag and drop the
ButtonPlayerTitlesprefab into theShortcuts/ShortcutsPanel.
- Drag and drop the
-
Configure the ButtonPlayerTitles Button:
- For the
ButtonPlayerTitlesbutton, assign theUI_PlayerTitlesscript and add the actionGameObjectSetActive. Make sure to check the appropriate box.
- For the
Creating and Configuring Titles:
- Create a New Category: Set up a new category to organize your titles.
- Create a New Title: Add a new title within the newly created category.
- Add to the Player Prefab: Ensure all configurations are properly added to the player prefab.
Compatibility and Requirements:
-
Addon Currently Functional with Player Titles:
- Extended Quest
- Harvesting
- Crafting
-
Addons Required to Add Bonuses to Players:
- Attribute
By following these steps, you should be able to successfully integrate the Player Titles addon into your players in uMMORPG. Be sure to test each configuration to confirm everything is working as expected. Happy integrating!