Questions tagged [textmeshpro]

82 questions
1
vote
1 answer

I want to add font material at the dropdown(TMP)'s template item label

I use a translator, the sentence can be wrong. I want to add font material at the dropdown(TMP)'s template item label. using dropdown(TMP), I needed a template with glowing text. so I made font material. works fine at dropdown(TMP)'s…
1
vote
3 answers

Performance for Unity TextMeshPro (or alternative) with large amount of dynamic content

I'm working on a traditional roguelike project. I have a player log that displays what happens, played moved here, robot attacked player, player casts ability etc. This is fairly useful information and it updates frequently, every time the player…
FrontBadger
  • 41
  • 1
  • 4
1
vote
0 answers

TextMesh Pro Area Type Feature like in Illustrator

I was wondering if TextMesh Pro has plans for adding a feature similar to the Area Type feature from Illustrator pictured below, basically having the bounding box of the text object be a custom shape or dependent on something else? There is the…
Charles Nough
  • 353
  • 1
  • 3
  • 15
1
vote
1 answer

In Unity, small text is choppy and not as clean as in Figma

I have spent a lot of time trying to generate font in Unity with best results for small text. However, it is still choppy and nowhere near as clean as in Figma or other games that I have seen. Check the red arrow: Compared to Figma, my text in unity…
Adam Beňko
  • 221
  • 3
  • 4
  • 11
1
vote
1 answer

How to get the number of lines displayed in a Textmeshpro - text (UI)?

So in my script I want to know how many lines are displayed in a Textmeshpro - text (UI). public TextMeshProUGUI commentaryText; Debug.Log("number of lines " + (commentaryText.text.Split('\n').Length - 1)); I tried something like above but it will…
user8810083
  • 599
  • 1
  • 5
  • 21
1
vote
1 answer

TMP_InputField : in inspector can add method calls for things like onvaluechanged, but not for onsubmit?

https://docs.unity3d.com/Packages/com.unity.textmeshpro@1.3/api/TMPro.TMP_InputField.html#TMPro_TMP_InputField_onSubmit here is the onsubmit method, however this is not exposed in the editor, only onvaluechanged, onselect, onendedit, ondeselect are…
user8810083
  • 599
  • 1
  • 5
  • 21
1
vote
1 answer

How to stop repeated letter entry in TMP input field when key held down in Unity

I'm using a TMP input field and would like to override some default behaviour. Specifically, when a letter is held down, it repeats. Similarly, when backspace (or delete) is held down, it removes multiple characters. I would like it so that if a…
E_Williams
  • 31
  • 5
0
votes
1 answer

Text Wrapping Is Changing When I Press Play Unity(Closed)

So I'm making a game with text as the diolauge and I turn off overflow in the tmp settings. And when I press play it just turns back on again I have some images as example. And I tried restarting unity but that didn't work.
LeonTVRyt
  • 13
  • 4
0
votes
0 answers

Unity: TMPro UI components are layered above everything

I have a 2D Unity (2022.3.5f1) project it contains a camera, canvas and the TMPro UI elements are components of childs of the canvas. The problem is that these components are (when active) visible through other UI like sprites (I checked the sprites…
0
votes
1 answer

Cannot get hover and select on UI buttons to work in Unity

I'm having trouble making a very simple main menu. I've looked up many tutorials and other Stack Overflow questions, but many are pretty old and Unity updates regularly. enter image description here I've tried to eliminate every other component in…
0
votes
0 answers

When the Touchscreen Keyboard is Active Cannot Click on the UI Button

I am making a game with the chat mechanic's and everything is working smoothly, but there is one issue. When I clicked on the input field and the touchscreen keyboard opened, I write the message and when I try to send the message by clicking on the…
Rahmat Ali
  • 13
  • 8
0
votes
1 answer

I can't add OnClick functions to my button in Unity

I can't add OnClick functions to my Text Mesh Pro button. The menu is not what it used to be. Any solution? I removed and re-imported the TMP package but nothing changed.
0
votes
0 answers

Sprite icon in TMP with text inside

Using TMP sprite in string as in this example : "Some text before {amount} and some text after" where the expected result would be the following: In this context, I should be able to make "2" any given number on top of the…
Everts
  • 10,408
  • 2
  • 34
  • 45
0
votes
1 answer

Why is textmeshpro displaying blurred in game view in unity?

For some reason, the textmeshpro text is showing up blurry in the game window in Unity. Game window, with details of font used in inspector - Scene window view - I tried increasing the font size and changing the character from dynamic to unicode…
0
votes
2 answers

Cannot change Unity TextMeshPro text

I have a playing card prefab which contains a TextMeshPro object for displaying a number. I wish to instantiate the prefab and change the number. In some cases I can change the number, in other cases I cannot. I started by creating a sample scene to…
dkalkwarf
  • 313
  • 2
  • 11