Unregister(Guid, UnityAction<MessageEventArgs>)
Deregisters a message listener.
Read time 1 minuteLast updated 16 days ago
Definition
- Type: Method
- Namespace: UnityEngine.Networking.PlayerConnection
- Assembly: UnityEngine.CoreModule
public void Unregister(Guid messageId, UnityAction<MessageEventArgs> callback)
Parameters
Message ID associated with the callback that you wish to deregister.
The associated callback function you wish to deregister.
Remarks
Only deregisters the callback that is matched with the message ID and callback. Other registered callbacks with the same message ID are unaffected.