Skip to content

Close UnnyNet Window

Depending on a game, you might need to close UnnyNet window to display your in-game information. For example, if someone challenges you to the duel or invites you to play together.


UnnyNet was closed event

Whenever UnnyNet window got closed (from the code or by the user action), the event triggers:

UnnyNet.Events.OnUnnyNetClosed = () => {
    Debug.Log("On UnnyNet was closed");
UnnyNet.UnnyNet.onUnnyNetClosed = () => {"onUnnyNetClosed");