Questions tagged [textmeshpro]
82 questions
0
votes
1 answer
Unity add a listener form dictionary to a TextMeshProUGUI Text?
I am making a project with Unity that using RestSharp API's.
I can specify and retrieve language keys and values from the server without any problems, and I can keep these values up to date in a dictionary and listen. As soon as the values…

mhmmtysil
- 11
- 3
0
votes
2 answers
TextMesh Pro Material Preset Animation not working in unity
I am trying to animate TestMeshPro Material Preset, from fade to opaque. Its not working for me. Once material is assigned, it never changes even after assigning different materials in animation frames. Is it possible to create animation through…

Satyam
- 47
- 11
0
votes
1 answer
TextMeshPro Input field - can't set placeholders' wrapping to enabled?
I am trying to have a TMP Input Field with multiline (wrapped) placeholder. The input field has its content type set to Integer Number. Placeholder text has some string as text and has wrapping set to "enabled". In prefab editor, it looks ok (text…

defaultUsernameN
- 365
- 5
- 14
0
votes
2 answers
All TextMeshPro Font sizes revert back at Unity runtime after changing with ExecuteInEditMode in the Editor
My Unity scene has multiple objects containing a TextMeshPro component which I want to programmatically change in the Editor using the code below. The script runs successfully when i attach it to an object in the scene, though each of these changed…

StacksOnDeck
- 11
0
votes
2 answers
How to get a TextMeshProUGUI component from an instantiated/cloned gameobject?
A picture from Hierarchy :
I instantiate the SlateUGUI prefab and then later tried to access the highlitged gameobject 'TextDebug' using :
TextMeshProUGUI text1 = SlateInstant.transform.Find("TextDebug").GetComponent();
…

holouser
- 172
- 11
0
votes
2 answers
Input from a dynamic input box
I am trying to add text to a dynamic input box in Unity. I am using the Text Mesh Pro Asset. The inputbox is created where I want it to be, but the text does not display.
The code is as follows:
public GameObject inputs;
public GameObject…

zackrn23
- 3
- 2
0
votes
1 answer
Unity on iOS - TextMeshPro EXC_BAD_ACCESS Crash
We are experiencing a crash on iOS when a gameObject that has a TextMeshPro component is enabled.
We don't have this issue on Editor nor Android builds.
The stack shows recursive calls to GenerateTextMesh() on TextMeshPro component.
Stack;
Unity…

mayo
- 3,845
- 1
- 32
- 42
-1
votes
1 answer
TextMeshPro RunTime Insert additional Text via Script
Platform:
OS: Win10
Unity V.: 2022.2.19f1
textmeshpro V.: 2023.1
Language: C#
Build target: PC
Preamble:
Note; I have already looked over the suggested posts before making this one.
I can't find a solution for this anywhere. All I can find is…

Valthalin
- 415
- 2
- 7
-1
votes
1 answer
Cannot Modify the Text Mesh Pro Script Unity
I want to Change some Parts in Text mesh Pro in Unity And Use Some Function from Text Mesh Pro in another Script. Like the Private Function when I Change it to Public it Revert Back to private and do not let me change it. Is there Any Way to do…

Rahmat Ali
- 13
- 8
-1
votes
1 answer
Unity TMPro Typing Effect
I have my text aligned to the center-middle, which is why I i use the visibility of the characters instead of appending letter by letter to the text. My problem now is, that once the second line starts, the first line moves slightly up and I do not…

ZBR
- 19
- 2
-1
votes
1 answer
Why will my TextMeshProUI text not update?
I recently started gamedev using Unity, and I've run into the weirdest problem. I can not for the life of me make my PlayerName TextMeshProUI element in my BattleHud script update to the value of the string "name".
I tried many different ways of…

AlexNovember
- 1
- 1
-1
votes
1 answer
How to generate TMP InputField by script in Unity C#?
In my project I have a canvas and now I want to spawn a TMP_InputField on it using script. For other things like Image, TMP_Text, etc. I simply generated a new GameObject and added the necessary components to it:
GameObject object = new…

ZoKi Mo
- 51
- 1
- 5
-1
votes
1 answer
Having problems validating Text Mesh Pro form fields in Unity/C#
I'm trying to validate a TextMeshPro form in Unity, but accessing the fields programmatically seems to be disabling them for some reason.
Here's what I have in my UI Manager script:
using UnityEngine;
using TMPro;
public class UserInputUI :…

Seona
- 43
- 1
- 7
-1
votes
1 answer
Getting a null reference exception with TextMeshPro in Unity
I'm new to Unity and trying to learn the basics. I have a text box on a canvas that I'm trying to manipulate, right now by changing it from "Name" to "Test" at game start.
using System.Collections;
using System.Collections.Generic;
using…

Raddy
- 39
- 2
- 6
-1
votes
1 answer
How can I set the color of words as they are added to a TMPro UI element?
I've got a script that is added words according to an order when you pick them up, but when you get the order wrong, it is filling in the words that should have gone in that order. Most of the script is listed below, but I'm struggling to find a…

BearHandz
- 3
- 2