Function events disappear After Exiting Run Mode
Function events disappear After Exiting Run Mode
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 (30.18 KiB) Viewed 22 times
Re: Function events disappear After Exiting Run Mode
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.
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.