Click or drag to resize

RoomClientR, MRoomDirectRelayNotified Event

Event fired when you or another members sends you a direct relay message. Unlike RPCs, you will not receive this event if you are not the target of 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, MRoomDirectRelayNotificationEventHandler RoomDirectRelayNotified

Value

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