Diffrence between dialogue system in editor and built game

Hello
While building my project, I noticed that the dialogue system works differently in the editor than in the built game. When starting a conversation, you cannot go to the next part of the dialogue. The game thinks there’s no dialogue going on.

This is game build version

And this is editor version

Do you know what may cause this issue?

Yep. The issue is that OnValidate() is not called in a built game, so we’re not creating the Dictionary. There’s a simple fix for this. Make sure that OnValidate is not in the #if UNITY_EDITOR block, and add an Awake() method.

void Awake()
{
    OnValidate();
}
4 Likes

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms