Comment on page
Lobby Chat Msg
Support us as a GitHub Sponsor and get instant access to all our assets, exclusive tools and assets, escalated support and issue tracking and our gratitude.
These articles are made possible by our GitHub Sponsors ... become a sponsor today!
public struct LobbyChatMsg
Represents a chat message sent from the Steam Lobby system. This can be used to identify the sending lobby, user and data and can parse the data to a string or Json serialziable object.
Type | Name | Comment |
---|---|---|
Lobby | lobby | The source lobby |
UserData | sender | The user that sent it |
byte[] | data | The raw data sent |
DateTime | recievedTime | The time stamp the message was recieved |
string | Message | the string parsing of the message |
public override string ToString();
The same as calling Message, this returns the data parsed using UTF8 to a string
public T FromJson<T>();
This will read the string data into Unity's JsonUtility casting the object to the input type
Last modified 1mo ago