Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Write Whole Words" is ignored in TextMeshPro say dialogues #1056

Open
DancingEngie opened this issue Jun 19, 2022 · 0 comments
Open

"Write Whole Words" is ignored in TextMeshPro say dialogues #1056

DancingEngie opened this issue Jun 19, 2022 · 0 comments
Labels
bug Doing something it's not meant to, or not doing something it's meant to.

Comments

@DancingEngie
Copy link

Describe the bug
"Write Whole Words" setting is either ignored or bugged when using TMP in Say dialogues. The setting works perfectly when using Unity's default Text objects,

To Reproduce

  1. Open a TMP demo scene, or alternatively create a new scene, spawn a custom Say dialogue, and configure it to use TMP
  2. Enable "Write Whole Words"
  3. Use a dialogue node of some kind to trigger the new say dialogue
  4. Play
  5. See error/undesired behaviour

Expected behavior
Sentences should be written out one word at a time. Instead, they are written out one letter at a time, as if the setting is disabled.

Screenshots
https://i.imgur.com/WZMeIcz.gif
(Option is enabled in the editor. Text size increased for better visibility)

Versions & Platform (please complete the following information):

  • Unity version 2020.3.23f1
  • Fungus Version v3.13.8
  • Editor OS: Windows 10
  • Build Platform Windows

Additional Context
By placing Debug.Log callouts in every step of the PartitionString function (Writer.cs), I managed to figure out that Fungus doesn't even append rightString when using TMPro, instead opting to end the function after appending leftString. Fungus goes through the entire function normally when Unity's default UI Text component.
I'm not proficient enough with Fungus' backend to understand if that helps at all, but it did strike me as odd nonetheless.

@DancingEngie DancingEngie added the bug Doing something it's not meant to, or not doing something it's meant to. label Jun 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Doing something it's not meant to, or not doing something it's meant to.
Projects
None yet
Development

No branches or pull requests

1 participant