Skip to content

Write On Start option not working  #27

Closed
@arvz

Description

Describe the bug
When disabling Write On Start on TMPWriter, the writer still automatically starts writing when on Start()

To Reproduce

  1. Create a gameobject with TextMeshProUGUI component and TMPWriter component
  2. Set some text in the TextMeshProUGUI
  3. Disable Write On Start option on TMPWriter
  4. 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

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions