Skip to main content

Changing Player Name and Profile

Once connected, the Inworld AI Unity SDK will automatically use your Unity UserName (usually the first part of your email address) as the default name in the SDK.

⚠️ Note: If you have not yet logged into the Inworld Studio Panel, it is necessary to log in at least once to create the default User Settings. For instructions on how to log in, please refer to this page.

Changing User Name

You have the option to modify your player name and player data through the User Settings asset. There are a variety of different ways you can access this asset:

In the Editor

In SDK

Besides finding User Settings directly, you can also open that asset in the inspector in the following ways:

  1. Right-click on Project Panel > Inworld > User Settings.

UsrName2

  1. Alternatively, click on Inworld in the top menu and then select User Settings.

UsrName3

⚠️ Note: The User Settings asset and other ScriptableObject instances are displayed in the Inspector which may sometimes be covered by other editor panels. You can manually click on the Inspector tab to bring it to the foreground.

After configuring these settings, you can proceed to check the results and make sure everything is as desired. UsrName3

In Package

Please select Packages > Inworld.AI > Runtime > Data > UserSettings.

UsrName1

During Runtime

Your application can adjust the value of InworldAI.User.Name at runtime.

Starting with version 3.3, we introduced a unitary session feature, enabling users to update their username while the application is running.

In version 3.3.1, we further enhanced this functionality by adding a configuration canvas to the PlayerController. By default, users can press ESC to access this menu and update the player's name in real-time.

UsrName1

Adding Player Profile

You can also define additional parameters to set as your player's profile when loading a scene. Here's an example:

1. Setting it in the Studio Website

Go to the Inworld Studio, open your workspace, select Player Profiles, and click Add player profile field PP1

Enter the Field label, ID, and value type, then click Save. PP2

⚠️ Note: The most important data you need to copy to Unity is the Field id.

2. Setting it in Unity

In Unity, right click on Project tab, select Inworld > User Settings, and add the corresponding Player Data using your Field id and the desired value. PP3

3. During Runtime

You will see that the character recognizes the data you provided in these areas. PP4

⚠️ Note: The character may not directly reveal the truth (the data you have set) based on the context or their personality.

User ID

User ID is a unique identifier for each user who installs an application developed using our SDK. This UserID is used for tracking debug information.

Developers can modify this string as needed; by default, it is set to SystemInfo.deviceUniqueIdentifier.

It is located in the UserRequest of InworldUserSettings. PP5