Receive a directed message
Learn how to send direct messages between users.
Read time 1 minuteLast updated 20 hours ago
To receive a directed message, bind a method to the ILoginSession.DirectedMessages.AfterItemAdded event. The following code snippet displays an example of this action:
UserLoginSession.DirectedMessages.AfterItemAdded += (sender, args) =>{ Debug.Log(args.Value.Sender +“: ” + args.Value.Message);};