Tutorial videos
Home
Developer
Discord
Search…
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
Methods
Register(Action<bool, SWRegisterReply, SWLobbyError>) Method
MessagePlayer(string, string, Action<bool, SWLobbyError>) Method
CreateRoom(bool, int, Action<bool, string, SWLobbyError>) Method
ChangeRoomSettings(int, int, Action<bool, SWLobbyError>) Method
GetRooms(int, int, Action<bool, SWGetRoomReply, SWLobbyError>) Method
FilterRoom(SWLobbyFilterData, byte, Action<bool, SWGetRoomFilterReply, SWLobbyError>) Method
JoinRoom(string, Action<bool, SWJoinRoomReply, SWLobbyError>) Method
JoinRoomRandomly(Action<bool, SWJoinRoomReply, SWLobbyError>) Method
JoinOrCreateRoom(bool, int, int, Action<bool, SWJoinRoomReply, SWLobbyError>) Method
MessageRoom(string, Action<bool, SWLobbyError>) Method
GetRoomCustomData(Action<bool, SWGetRoomCustomDataReply, SWLobbyError>) Method
GetPlayersInRoom(Action<bool, SWGetPlayersReply, SWLobbyError>) Method
ChangeRoomCustomData(string, Action<bool, SWLobbyError>) Method
StartRoom(Action<bool, SWLobbyError>) Method
LeaveRoom(Action<bool, SWLobbyError>) Method
Open Source Software Used
Credits
Powered By
GitBook
ChangeRoomCustomData(string, Action<bool, SWLobbyError>) Method
Namespace: SWNetwork.Lobby
Called by room owners to begin an asynchronous operation to change the custom data of their rooms using the specified string.
Declaration
public
void
ChangeRoomCustomData
(
string
customData
,
Action
<
bool
,
SWLobbyError
>
callback
)
Parameters
Type
Description
customData
string
String custom data.
callback
Action<bool,
SWLobbyError
>
The method to invoke when the change room custom data operation is complete.
​
Overloads
ChangeRoomCustomData(object, Action<bool, SWLobbyError>) Method
Called by room owners to begin an asynchronous operation to change the custom data of their rooms using the specified serializable object.
Declaration
public
void
ChangeRoomCustomData
(
object
customData
,
Action
<
bool
,
object
,
SWLobbyError
>
callback
)
Parameters
Type
Description
customData
object
Serializable object custom data.
callback
Action<bool,
SWLobbyError
>
The method to invoke when the change room custom data operation is complete.
​
Previous
GetPlayersInRoom(Action<bool, SWGetPlayersReply, SWLobbyError>) Method
Next
StartRoom(Action<bool, SWLobbyError>) Method
Last modified
3yr ago
Copy link
Outline
Overloads
ChangeRoomCustomData(object, Action<bool, SWLobbyError>) Method