Call event when Main Panel deactivates

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
perezbalen
Posts: 40
Joined: Mon May 24, 2021 7:22 pm

Call event when Main Panel deactivates

Post by perezbalen »

Hi.
Is there a way to run code when the Main Panel Deactivates? Something like the OnConversationEnd(), but for when the Main Panel hides?
Thanks
User avatar
Tony Li
Posts: 21975
Joined: Thu Jul 18, 2013 1:27 pm

Re: Call event when Main Panel deactivates

Post by Tony Li »

Hi,

The dialogue UI's main panel (typically named Dialogue Panel) has a UIPanel component. This component has OnClose() and OnClosed() UnityEvents.

OnClose() runs when the main panel starts to close. OnClosed() runs when the main panel has finished closing.
Post Reply