Skip to main content

Questions tagged [textmeshpro]

The tag has no usage guidance.

textmeshpro
Filter by
Sorted by
Tagged with
5 votes
2 answers
9k views

What is the difference between TMP_Text and TextMeshProUGUI?

While making a game with Unity, I was curious about the difference between TMP_Text and TextMeshProUGUI in TMPro. Please let me know what is different from each other. I'd appreciate an example of ...
Injun's user avatar
  • 63
4 votes
2 answers
2k views

Changing TextMeshPro Text which is child of 2D Sprite via script in Unity

I have a 2D square object sprite that has a child TextMeshPro object which stores a number. Hierarchy in Unity: Unity Scene: I want to dynamically change the number in the TextMeshPro object via a ...
Abhishek Venkatesh's user avatar
4 votes
1 answer
4k views

Cyrillic is not displayed in TextMeshPro

Cyrillic is not displayed in TextMeshPro, squares are displayed instead of Russian letters. I looked on the Internet for analysis of the same issue from other people, but I did not understand anything ...
KitPolosa's user avatar
3 votes
0 answers
1k views

How to add a **OUTER POSITIONED** outline to Text Mesh Pro in Unity?

I'm looking to find a way to add an outside positioned outline to TMP in Unity. At the moment what I have right now using the outline property gives me an awkward and ugly center position outline. ...
Versailles's user avatar
2 votes
1 answer
1k views

<Unity> 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 ...
jaebyMan's user avatar
2 votes
1 answer
2k views

Fatal error in Unity CIL Linker - Problem with TMPro with IL2CPP

I have been trying for QUITE some time to migrate my project to newer versions of Unity, and to add the 64 bit support required in order to re-release my app for android. After switching to IL@CPP, ...
PugWrath's user avatar
1 vote
1 answer
186 views

SyntaxHighlighter in unity

Here is the code using System.Collections; using System.Collections.Generic; using UnityEngine; using TMPro; using System.Text.RegularExpressions; public class syntaxHighlter : MonoBehaviour { [...
ryan trynda's user avatar
1 vote
1 answer
8k views

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('\...
user8810083's user avatar
1 vote
1 answer
2k views

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

https://docs.unity3d.com/Packages/[email protected]/api/TMPro.TMP_InputField.html#TMPro_TMP_InputField_onSubmit here is the onsubmit method, however this is not exposed in the editor, only ...
user8810083's user avatar
1 vote
1 answer
820 views

TextMeshPro Text only renders on some part of the game screen

I am trying to add TextMeshPro on a game object(sprite) outside the UI in 2D world. So I created a sprite to act as the background and parent game object then I put a canvas as the child of the sprite....
Kenart's user avatar
  • 325
1 vote
1 answer
4k views

How to get support all type of fonts in unity3d textmeshpro

In unity3d text-mesh pro, I'm attempting to render these kind of fonts. However, it is not working; please assist us in resolving this issue. ꧁༺₦Ї₦ℑ₳༻꧂ 🅑🅛🅐🅒🅚🅟🅐🅝🅣🅗🅔🅡 ꧁༺ ₦Ї₦ℑ₳ ƤℜɆĐ₳₮Øℜ ༻꧂ ...
Annamalai's user avatar
  • 134
1 vote
1 answer
680 views

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 ...
E_Williams's user avatar
1 vote
1 answer
78 views

Unity: TextMeshPro 3D Object renders in different color than what it supposed to be

The main problem So I'm making a little 2D game in Unity in a pixel style. I'm right now in the middle of making a cutscene when player gets any upgrade. Problem is, I always used 3D TextMeshPro ...
user24880048's user avatar
1 vote
2 answers
280 views

Unity TextMeshPro input always has a length of 1 even after doing Trim()

I have a text input from TextMeshPro that's empty and when I try to grab the text, even after using trim, the length is always 1. There's an invisible character that I can't get rid of. public class ...
Axiyom's user avatar
  • 13
1 vote
1 answer
916 views

How to Use Emoji's In unity

I want to use the Emoji's in my project. but as we all know that unity is not supporting the all emoji's. First I try to make the Sprite asset and with it I can use many emoji but the Emoji's with the ...
Rahmat Ali's user avatar
1 vote
1 answer
2k views

How to translate text from a script using unity localization?

I know how to translate the text and so on. But I don't know how to translate text from a script (textMeshPro + value), like this script of mine. I'm using unity's own localization, which is easy for ...
CookieM_2019's user avatar
1 vote
0 answers
54 views

Unity Slider Value not changing

I'm making a game that is supposed to be run in 2 instances. The first instance is used to open Scene 1, (the Controller screen), which has this script attached to an object: public void UpdateTimer() ...
Flepnee's user avatar
  • 11
1 vote
1 answer
66 views

Unity C# Textmesh pro is not updating when changing text programatically

I have a TextMeshPro object for output and i want to change its text. What i found is that the text is changing but not updating. The weird thing is that i can change it and it updates when it is on ...
Jim Mede's user avatar
1 vote
1 answer
54 views

Issue with EditorGUI.EndChangeCheck, observed field is not yet updated

I am attempting to extend the TextMeshProUI with a custom implementation. I extended the editor with it so that I can track some changes public class LocalizedTMP_UGUI : TextMeshProUGUI { // ...
Everts's user avatar
  • 10.7k
1 vote
0 answers
44 views

Add TextMeshPro component to gameobject

When i add TextMeshPro component to gameobject my gameobject and mesh filter disappear. What is the problem? private TextMeshPro m_text; void Awake() { m_text = gameObject....
user582859's user avatar
1 vote
1 answer
147 views

How to Detect Which Emoji is Pressed keyboard [duplicate]

I want to use Emoji's in my game But currently unity is not Supporting all Emoji's. So, I decided to Find out that which Emoji is pressed from keyboard, or I can get the Unicode of the Emoji's pressed ...
Rahmat Ali's user avatar
1 vote
1 answer
719 views

Unity - getting the correct text size after Content Size Fitter

Please help, I can’t figure it out myself I have a TextMeshPro Prefab I wanted the height of the object to match the actual height of the text, so I added a Content Size Fitter component to the prefab ...
KOSOY's user avatar
  • 21
1 vote
1 answer
231 views

Tabbing between TMP_InputField's in Unity isn't working properly, I can see the carat but can't type until I click the field

I have a unity scene which has 4 TMP_FieldInput's on it. (I am also using the new Unity Input system if it matters). What I'm trying to accomplish is to allow tabbing between the fields. The solution ...
Todd Davis's user avatar
  • 5,987
1 vote
2 answers
1k views

Unity Error, Cannot initialize non-default texture with negative or zero width

As I am trying to run my game, it displays the following error: Unity Error, Cannot initialize non-default texture with negative or zero width, UnityEngine.Texture2D:Resize (int,int,UnityEngine....
safae's user avatar
  • 11
1 vote
0 answers
57 views

Unity - Null Reference Exception Error when trying to generate Lists with an image and TMPro text [duplicate]

On the project that I am working, I have a screen that has a list of "star system" that will eventuyally be clickable. The system should be spawning as a list with names, details and an ...
Lexicon11's user avatar
1 vote
1 answer
306 views

Unity Add callbacks to prefab objects dynamically in code

I am creating a canvas with a table containing TextmeshPro Input fields on a row. I'm using the XR Input System for the Oculus Quest Vr Headset and wish to handle input from the controllers so they ...
Mark's user avatar
  • 164
1 vote
3 answers
6k views

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 ...
FrontBadger's user avatar
1 vote
0 answers
78 views

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 ...
Charles Nough's user avatar
1 vote
2 answers
1k views

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 ...
Adam Beňko's user avatar
0 votes
3 answers
1k views

Unity - changing colors via script not working?

still learning Unity. I want to change text of a dots under button. These dots are TextMeshPro objects. I'd like to set the color as variable to be able to change it later in the app. My code is: ...
Ondrej Sabol's user avatar
0 votes
2 answers
2k views

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("...
holouser's user avatar
  • 192
0 votes
1 answer
421 views

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.
thorinski's user avatar
0 votes
1 answer
565 views

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 ...
Dank Reject's user avatar
0 votes
2 answers
639 views

Access TextMesh Pro Texture Tiling and Offset how?

TextMesh Pro shaders have two unusual facilities for adjusting the Textures used for both the Face and the Outline: Tiling and Offset. They're not accessible via the normal ways of using keywords to ...
Confused's user avatar
  • 6,198
0 votes
1 answer
926 views

Can't change TextMeshPro's alpha in canvas gruoup (Unity)

I've been trying to change the alpha value of an object and all of its children with a canvas group in Unity (I'm making UI animations), and every child will fade out, except for TextMeshPro objects. ...
danielenapo's user avatar
0 votes
1 answer
6k views

Use script to change the font of a button label (TextMesh Pro)?

I want to use script to dynamically change the font of a specific button label in Unity. However, my efforts haven't worked. I have created a simple game. The game's interface has multiple buttons on ...
stevemn's user avatar
0 votes
2 answers
59 views

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 ...
user avatar
0 votes
2 answers
934 views

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 ...
dkalkwarf's user avatar
  • 313
0 votes
1 answer
313 views

How to automatically activate a TMP_InputField

I have two TMP_InputField in unity. I am trying to automatically focus on and activate the other once the first one has an input. I have tried the following but for some reasons, it's not working for ...
Craving_gold's user avatar
0 votes
2 answers
515 views

TextMeshPro 3D text glowing?

I'm trying to use TextMesh pro with 3D text but in is glowing? I don't have glow on the text, so I don't know why its glowing through the fog in my scene. https://i.sstatic.net/miUlJ.jpg This image ...
PugDance's user avatar
0 votes
1 answer
158 views

Can I use more than one TMP_Text or TextMeshPro in Unity?

I'm trying to display a 2 results, but it will only display on the first TextMeshPro Can I add multiple TMP_Text? Also, how use call it if I tag the TMP_Text?
Liora's user avatar
  • 45
0 votes
1 answer
798 views

How do I create and place an input text field from script?

I want to display an input field on the screen from a script, no editor, no template to work with. I think I need a TMP_InputField but I was unable to position it, see it or interact with it at all. ...
akarnokd's user avatar
  • 69.6k
0 votes
1 answer
710 views

Is TextMesh Pro InputField for password secure?

I'm making a mobile online game with Unity. Just like other online games, there is a login screen for entering an ID/password with TMP_InputField from TextMesh Pro. The password input field is covered ...
Peter Han's user avatar
0 votes
2 answers
47 views

How do I resolve this Collection Modified Error?

To preface, I believe I understand how list modification errors occur. You can't change a list while you're looping them, and in some cases, variables that are linked to the list (I think that's what'...
Jacob Lamattina's user avatar
0 votes
1 answer
462 views

How to display text in Unity game

I inherited by my ex collegue a Unity game. Now I need to implement this behaviour. The game consist in a car drive by user using Logitech steering. Now I need to show a Text every X minute in a part ...
bircastri's user avatar
  • 2,105
0 votes
1 answer
3k views

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 ...
defaultUsernameN's user avatar
0 votes
2 answers
1k views

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 ...
StacksOnDeck's user avatar
0 votes
0 answers
4 views

Why textMeshPro makes gc when called SetCharArray?

I am new about unity,I found that in the function named SetCharArray, like this: public void SetCharArray(char[] sourceText, int start, int length) { PopulateTextBackingArray(...
user25957020's user avatar
0 votes
1 answer
33 views

Hindi text does not work with TMPro even when using the Hindi font

I am working on this issue from quite a while now where I am trying to display a Hindi text using a Font specifically made for it. The problem is that copy-pasting Hindi from Google Translator to the ...
Patrick Moling's user avatar
0 votes
0 answers
36 views

Unity TextMeshPro not showing up in an Android build

Whenever I make an Android build all of the TextMeshPro text doesn’t load at all, it works fine in the editor and on a PC build. I have already attempted a number of suggested issues like setting ...
TrashMachine's user avatar