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.UnnyNetBase.CloseUnnyNet();
UnnyNet.UnnyNet.closeUnnyNet();
unnynet.close();

UnnyNet was closed event

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

UnnyNet.UnnyNetBase.m_OnUnnyNetClosed = () => {
    Debug.Log("On UnnyNet was closed");
};
UnnyNet.UnnyNet.onUnnyNetClosed = () => {
    console.info("onUnnyNetClosed");
};