diff --git a/Assets/Fungus/Scripts/Components/SayDialog.cs b/Assets/Fungus/Scripts/Components/SayDialog.cs index a23acc13..a3b15475 100644 --- a/Assets/Fungus/Scripts/Components/SayDialog.cs +++ b/Assets/Fungus/Scripts/Components/SayDialog.cs @@ -147,10 +147,16 @@ namespace Fungus // Character image is hidden by default. SetCharacterImage(null); } + } + protected void OnEnable() + { + // We need to update the cached list every time the Say Dialog is enabled + // due to an initialization order issue after loading scenes. stringSubstituter.CacheSubstitutionHandlers(); } + protected virtual void LateUpdate() { UpdateAlpha();