Overlapping text when inserting Player Display name
Posted: Fri Aug 18, 2023 6:29 pm
Hi. I found the discussions elsewhere in this forum about how to show display names, however I am experiencing a bug:
Example conversation text set in the DB/inspector:
It's ... uh ... my ... my name is [lua(Actor["Player"].Display_Name)]. This text is now overlapping!
The result when playing the game is: When I view the text field via the inspector at that time (WHILE playing) it looks like this:
It's ... uh ... my ... my name is Wretched Human . This text is now overlapping!
See the space after "Human" that got inserted? If I copy-paste that text from the inspector, into NotePad, there seems to be a "new line" or carriage return in there:
It's ... uh ... my ... my name is Wretched Human
. This text is now overlapping!
My text field is a TMPro textfield and yes, Rich Text is enabled.
Help!
Example conversation text set in the DB/inspector:
It's ... uh ... my ... my name is [lua(Actor["Player"].Display_Name)]. This text is now overlapping!
The result when playing the game is: When I view the text field via the inspector at that time (WHILE playing) it looks like this:
It's ... uh ... my ... my name is Wretched Human . This text is now overlapping!
See the space after "Human" that got inserted? If I copy-paste that text from the inspector, into NotePad, there seems to be a "new line" or carriage return in there:
It's ... uh ... my ... my name is Wretched Human
. This text is now overlapping!
My text field is a TMPro textfield and yes, Rich Text is enabled.
Help!