YOM Replicator SDK 0.8.0.0
A metaverse SDK created by YOM
Loading...
Searching...
No Matches
Nameplate Setup

Adding a nameplate to your character

The Your Open Metaverse plugin allows creators to design their own nameplates. This guide will explain how to create and use your own nameplates with our ecosystem. If you just want to use our default nameplates, but it has not been enabled yet on your character you can move to Step 2 and use the YomDefaultNameplateWidget as your widget.

Step 1: Creating a custom nameplate

To create a custom nameplate you will have to create a new blueprint asset. Right-click in a folder in the Content Browser and under Create Basic Asset click on Blueprint Class.

Blueprint Class

This will open up the blueprint dialog box in which you can search for YomNameplateWidget. Once you find the YomNameplateWidget select it.

Pick YomNameplate

You can now customize your nameplate as you like, but one of the widgets must be a TextBlock widget with the name WalletID. In this TextBlock the walletID of the players will be printed when they are loaded into the game. Also give this walletID block a nice default name like Unknown for when the nameplate could not be loaded.

Step 2: Adding the nameplate to your character

Open up your character (this is not your MetaspacePlayer, but the character that the players will use to move around with) and under the Components tab add a Widget component.

Pick Widget Component

Give this widget a nice name like Nameplate and select it. Under the Details -> User Interface -> Widget Class you can set your widget.

Select Widget Class

Tip: If you want the widget to always face the player, change Space from World to Screen.

In the Viewport tab, set the nameplate to the desired position for your character.

Step 3: Add the YomNameplateManager to your MetaspacePlayer

The nameplates will only work when you tell your MetaspacePlayer to load the YomNameplateManager in your game on startup. Go to your MetaspacePlayer and under Details -> Yom Player -> Managers add an element and insert YomNameplateManager.

Add YomNameplate Manager

You should now be able to see a nameplate when you spawn into the game.