Documentation

Unity Engine

Download Unity

Unity Engine

Unregister(Guid, UnityAction<MessageEventArgs>)

Deregisters a message listener.
Read time 1 minuteLast updated a month ago

Definition

public void Unregister(Guid messageId, UnityAction<MessageEventArgs> callback)

Parameters

messageId

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.