Function events disappear After Exiting Run Mode

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Cloud
Posts: 4
Joined: Fri May 09, 2025 9:37 pm

Function events disappear After Exiting Run Mode

Post by Cloud »

The functions I set before entering run mode work correctly while run mode is active, but they are disappear when I exit run mode. How can I make them persist?
Attachments
Screenshot 2025-05-14 200849.png
Screenshot 2025-05-14 200849.png (30.18 KiB) Viewed 18 times
User avatar
Tony Li
Posts: 23136
Joined: Thu Jul 18, 2013 1:27 pm

Re: Function events disappear After Exiting Run Mode

Post by Tony Li »

This is a known issue with UnityEvents nested inside dropdowns in some older Unity versions. Can you update your Unity to the latest version in your current LTS? For example, if you're using Unity 2022.x, update to 2022.3.62f1?

If not, then you can replace the Dialogue System Events component with two Dialogue System Trigger components -- one with the Trigger dropdown set to OnConversationStart and the other set to OnConversationEnd. Then select Add Action > OnExecute() UnityEvent.
Post Reply