You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 and TMPWriter component
Set some text in the TextMeshProUGUI
Disable Write On Start option on TMPWriter
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
The text was updated successfully, but these errors were encountered:
You also have to disable "WriteOnNewText", since the first text is also considered a new text.
Which is because TextMeshPro invokes the TEXT_CHANGED_EVENT once for every TMP_Text when first enabled.
Let me know if that solved your issue or if something else is going on ✌️
Describe the bug
When disabling
Write On Start
onTMPWriter
, the writer still automatically starts writing when onStart()
To Reproduce
TextMeshProUGUI
component andTMPWriter
componentTextMeshProUGUI
Write On Start
option onTMPWriter
Expected behavior
TMPWriter shouldn't begin Writing automatically
I've put a debug log in the
StartWriter()
method, and the stack trace is:The text was updated successfully, but these errors were encountered: