ProjectVLobbyProfile class
The player's identity and level as shown in the Lobby. Read-only.
Namespace: SilverTiger.ProjectV.Unity.Presentation.Lobby
public sealed class ProjectVLobbyProfile
Constructors​
ProjectVLobbyProfile(string userId, string username, string displayName, long level, string avatarUrl)​
Creates a profile. The SDK builds these for you; create one yourself only for tests or previews.
public ProjectVLobbyProfile(string userId, string username, string displayName, long level, string avatarUrl);
Parameters
| Name | Type | Description |
|---|---|---|
userId | string | The player's account ID; must not be blank. |
username | string | The player's unique username; must not be blank. |
displayName | string | The name to show; when blank, username is used. |
level | long | The player's level, 1 or higher. |
avatarUrl | string | The avatar image URL; null is stored as empty. |
Exceptions
| Exception | When |
|---|---|
ArgumentException | userId or username is blank. |
ArgumentOutOfRangeException | level is below 1. |
Properties​
| Property | Type | Description |
|---|---|---|
UserId | string | The player's account ID. Not for display. |
Username | string | The player's unique username. |
DisplayName | string | The name to show; falls back to Username when the player has none. |
Level | long | The player's level, 1 or higher. |
AvatarUrl | string | The avatar image URL. Currently always empty; show the default avatar. |
AvatarFrameId | string? | The avatar frame to show. Not supported yet: always null. |