snozbot / fungus

An easy to use Unity 3D library for creating illustrated Interactive Fiction games and more.
MIT License
1.6k stars 291 forks source link

Narrative Log needs a character count to prevent it from breaking all UI text in games. #945

Closed ianicmathieu closed 3 years ago

ianicmathieu commented 3 years ago

Describe the bug If you have a lot of text in the Narrative log, Unity will hit it's vertices limit and all subsequent text fields will show garbage text or be empty

ArgumentException: Mesh can not have more than 65000 vertices

To Reproduce Simply fill up the Narrative log with text until unity starts giving the error. At some point - when 65000 vertices are reached, your text will become garbage in the narrative log and everywhere else. This pretty much breaks your game.

A solution could be to control the character count of the Narrative log.