Tutorial videos
Home
Developer
Discord
Search
⌃
K
Links
SWNetwork SDK Overview
Installation
Custom Unity Package
Tutorials
Third-Person Shooter
Basic Lobby
SDK
Network Client
Game Play
Lobby
Register Player
Message Player
Create Room
Change Room Settings
Get Rooms
Filter Rooms
Join Room
Message Room
Get Players in Room
Get Room Custom Data
Change Room Custom Data
Kick Players
Start Room
Leave Room
Lobby Room Events
Classes
SWLobby Class
SWPlayer Class
SWRoom Class
SWRegisterReply Class
SWGetRoomReply Class
SWJoinRoomReply Class
SWGetRoomCustomDataReply Class
SWGetPlayersReply Class
SWLobbyIndexData Class
SWLobbyFilterData Class
SWGetRoomFilterReply Class
SWLobbyError Class
SWMessagePlayerEventData Class
SWMessageRoomEventData Class
SWRoomCustomDataChangeEventData Class
SWJoinRoomEventData Class
SWLeaveRoomEventData Class
SWRoomChangeOwnerEventData Class
SWStartRoomEventData Class
SWRoomReadyEventData Class
SWFailedToStartRoomEventData Class
Methods
Open Source Software Used
Credits
Powered By
GitBook
Comment on page
SWPlayer Class
Namespace: SWNetwork.Lobby
The data model of a player.
Declaration
public
class
SWPlayer
Properties
Type
Description
id
string
ID of the player.
data
string
player custom data in string format.
Methods
Description
GetCustomDataString()
Gets the player custom data in string format.
GetCustomData<T>()
Gets the deserialized player custom data.
Previous
SWLobby Class
Next
SWRoom Class
Last modified
4yr ago