Questions tagged [textmeshpro]

82 questions
4
votes
2 answers

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 script that is a component of the 2D square…
3
votes
2 answers

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 when to use it. I don't know why TMP_Text and…
Injun
  • 43
  • 1
  • 3
3
votes
0 answers

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. First image is what I want to achieve and second is…
2
votes
1 answer

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, in order to target ARM64, I'm getting this error…
PugWrath
  • 99
  • 1
  • 4
2
votes
1 answer

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 and did not help. In Asset Creator, it seems…
KitPolosa
  • 21
  • 1
  • 2
1
vote
1 answer

How to Detect Which Emoji is Pressed keyboard

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 by keyboard. Is there any way to find that out.
Rahmat Ali
  • 13
  • 8
1
vote
1 answer

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 complex Unicode like "1f3c3_1f3fb_200d_2642"…
Rahmat Ali
  • 13
  • 8
1
vote
1 answer

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 and gave it a Vertical Fit - Preferred Size. In…
KOSOY
  • 21
  • 3
1
vote
1 answer

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 I have so far "sort of" works, but not correctly.…
Todd Davis
  • 5,855
  • 10
  • 53
  • 89
1
vote
1 answer

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. Finally I put the TextMeshPro as the child of…
Kenart
  • 285
  • 3
  • 14
1
vote
1 answer

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…
1
vote
1 answer

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 { [SerializeField] private TMP_InputField inputField; …
1
vote
0 answers

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

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 image. If I force the amount of systems to spawn, They do so…
Lexicon11
  • 11
  • 2
1
vote
1 answer

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 can interact with the Input fields (Select and…
Mark
  • 166
  • 1
  • 13
1
vote
1 answer

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 me to use. Translate the words: Coins and DEATH…
1
2 3 4 5 6