Closed
Description
Describe the bug
When disabling Write On Start
on TMPWriter
, the writer still automatically starts writing when on Start()
To Reproduce
- Create a gameobject with
TextMeshProUGUI
component andTMPWriter
component - Set some text in the
TextMeshProUGUI
- Disable
Write On Start
option onTMPWriter
- Start game, observe the writer begins writing
Expected behavior
TMPWriter shouldn't begin Writing automatically
I've put a debug log in the StartWriter()
method, and the stack trace is:
StartWriter
TMPWriter.StartWriter() at /External /TMPEffects/Runtime/Components/TMPWriter/TMPWriter.cs:203
TMPWriter.OnTextChanged_Late() at /External /TMPEffects/Runtime/Components/TMPWriter/TMPWriter.cs:605
TMPMediator.TextChangedProcedure() at /External /TMPEffects/Runtime/Components/TMPMediator/TMPMediator.cs:345
TMPMediator.OnTextChanged() at /External /TMPEffects/Runtime/Components/TMPMediator/TMPMediator.cs:297
TMPro.FastAction`1<UnityEngine.Object>.Call() at ./Library/PackageCache/com.unity.textmeshpro@3.0.9/Scripts/Runtime/FastAction.cs:73
TMPro_EventManager.ON_TEXT_CHANGED() at ./Library/PackageCache/com.unity.textmeshpro@3.0.9/Scripts/Runtime/TMPro_EventManager.cs:77
TextMeshProUGUI.GenerateTextMesh() at ./Library/PackageCache/com.unity.textmeshpro@3.0.9/Scripts/Runtime/TMPro_UGUI_Private.cs:4485
TextMeshProUGUI.OnPreRenderCanvas() at ./Library/PackageCache/com.unity.textmeshpro@3.0.9/Scripts/Runtime/TMPro_UGUI_Private.cs:1670
TextMeshProUGUI.ForceMeshUpdate() at ./Library/PackageCache/com.unity.textmeshpro@3.0.9/Scripts/Runtime/TextMeshProUGUI.cs:547
TMPMediator.ForceReprocess() at /External /TMPEffects/Runtime/Components/TMPMediator/TMPMediator.cs:93
TMPWriter.OnEnable() at /External /TMPEffects/Runtime/Components/TMPWriter/TMPWriter.cs:451