Click or drag to resize

RoomClientR, MRoomRelayNotified Event

Event fired when another room member sends a relay message to a room you're currently a member of. You will not receive this event if you are the one sending the message.

Namespace:  SoftGear.Strix.Client.Room
Assembly:  strix-client-csharp-room (in strix-client-csharp-room.dll) Version: 2.3.0
Syntax
C#
public event RoomClientR, MRoomRelayNotificationEventHandler RoomRelayNotified

Value

Type: SoftGear.Strix.Client.RoomRoomClientR, MRoomRelayNotificationEventHandler
Examples
StrixNetwork.instance.roomSession.roomClient.RoomRelayNotified += notification => {
    var sender = (MatchRoomMember)StrixNetwork.instance.roomMembers[notification.Data.GetFromUid()];
    Debug.Log("Player " + sender.GetName() + " sent a message: " + ((RoomRelayMessage)notification.Data.GetMessageToRelay()).GetMessageToRelay());
};
See Also