Questions tagged [text-mesh-pro]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
0 answers
38 views

Unity Text mesh pro custom Font issue

Following an upgrade from Unity 2020.3.36f to 2023.2.3f1, I've encountered problems with custom fonts in Text Mesh Pro. The texts using custom fonts aren't displaying correctly, whereas the default ...
Muhammed Fasil 's user avatar
0 votes
1 answer
187 views

Custom TextMeshPro Shader doesn't render on Android

I wanted to make build of a project using custom shader for TextMeshPro text assets. It renders nicely on PC but It gives me block instead when build for the meta Quest 2. For me it looks like it ...
Felox's user avatar
  • 67
0 votes
1 answer
64 views

TextMeshPro Page Mode Issue (Readable Books In game)

I'm trying to implement readable books into my game. Much like Morrowind and Skyrim. I have a system that sort of works, but it appears as though there is a bug that is duplicating some page data, and ...
Krythic's user avatar
  • 790
0 votes
1 answer
543 views

How to animate a Text Mesh Pro font color transition in Unity when the initial color is unknown?

I have some text where different letters can be different colors: I'd like to use the Animation feature to transition each letter frame-by-frame until they are white, like this: The challenge is ...
kanamekun's user avatar
  • 369
1 vote
0 answers
169 views

How can I create text underlayed with sprites in Unity UI?

I have some UI text in a canvas that I'd like to be able to render with sprites behind some of the characters. This is effect I'd like to achieve: I've been able to use Text Mesh Pro UI text objects ...
Zach's user avatar
  • 111
0 votes
1 answer
192 views

How to replicate TextMesh Pro Gradient ScriptableObject Interface?

I'm creating a scriptable object to store the color scheme for each level in my Brick Breaker game. There are a lot of options for how to input colors, but the way that TextMesh Pro does it for their ...
MXMLLN's user avatar
  • 115
0 votes
3 answers
972 views

How to make TextMeshProUGUI truncate the left part (beginning) of a line?

I'm trying to display file names including their directory. When the file path gets too long for the text box, I want to align it right, because the filename is more important than the directory. I ...
Frederik Steinmetz's user avatar
1 vote
0 answers
156 views

Apply custom patterns to different letters using Text Mesh Pro

I'm making a Unity app, and would like to apply a zebra-like stripe to various letters: My first thought was to create a Material Preset with zebra stripes, and apply it to my font using Text Mesh ...
kanamekun's user avatar
  • 369
0 votes
0 answers
115 views

How to get information about hovered inline sprite in a TextMeshPro?

I am new to Unity And C#. Usually I can get answers online when I encountered problems, but this one I couldn't find any clue. I know there's a way to detect text by using ...
Hippo's user avatar
  • 1
1 vote
0 answers
92 views

How can I blur part of TMP text and animate that blur in Unity?

I have a text animation in unity and at one point I want to blur part of the text. How would I do this without creating bunch of material preset and if I would make an effect with editing the material ...
Ivan's user avatar
  • 317
3 votes
1 answer
1k views

Caret not visible with TMP_InputField created from script

I'm modding an Unity game. I don't have access to its source, to any Unity editor or assets. All I have is BepInEx and some C# scripting, plus whatever Visual Studio can decompile from dlls. I create ...
akarnokd's user avatar
  • 233
-1 votes
1 answer
379 views

Event Click Mouse Button to 3D TextMeshPro

Im create TextMeshPro from "Create -> 3D Object ->Text - TextMeshPro" How to receive mouse button click event for TextMeshPro? I tried via Physics.Raycast/Collider but it doesn't work. ...
fredwriter's user avatar
0 votes
1 answer
2k views

Change the "Font Asset" of every TextMeshPro object

I have a large project in Unity and I would like to change the font for every TextMeshPro Object in every scene. I've tried changing the "Default Font Asset" in Edit > TextMesh Pro > ...
Gary Olsson's user avatar
1 vote
0 answers
241 views

Unity fading alpha of TMPro text causes noticeable frame rate drop

I am using this code to change the transparency of my TMPro TMPUGUI text when changing a page (from a book). ...
Raphael's user avatar
  • 163
3 votes
1 answer
698 views

How to programmatically activate the Glow option in a Text Mesh Pro font

I can activate the Glow setting for a Font in Text Mesh Pro by checking the Glow checkbox: Is there a way I can programmatically do the same thing? I looked in the corresponding shader, and found ...
kanamekun's user avatar
  • 369
0 votes
0 answers
539 views

Blurry text in low resolution game using TMP

This could be a simple solution that my mind cant grab right now. So, I am working on a game with a specific resolution which is 64x64. I using unity latest version. as for my text I am using TMP. My ...
Maiz's user avatar
  • 1
0 votes
1 answer
2k views

How to vary the Glow settings for a Text Mesh Pro font

I've added a Text Mesh Pro component to my GameObject, as shown here: I'd like to programmatically vary the value of the Power setting under Glow, in order to create a pulsating effect for my text. ...
kanamekun's user avatar
  • 369
1 vote
0 answers
820 views

How to modify the Unity TextMeshPro Input Field Caret?

the default caret doesn't match the style of our font at all, ideally i would replace it with an upper case "i" that uses our main Font material, is there a way to do that ? searching the ...
alaslipknot's user avatar
3 votes
0 answers
1k views

TextMeshPro batching unity

I have several GameObject with textMeshPro component attached to them, each one of them draw themselves individually resulting in a lot of draw call is there any way to batch them? Each one of them ...
Barbapapoy's user avatar
1 vote
0 answers
178 views

"Assertion failed" error when running coroutines in edit mode - Unity

TLDR: Calling coroutines from OnValidate in edit mode leads to following error: ...
arcadeperfect's user avatar
0 votes
0 answers
1k views

Textmeshpro background color

Trying to get the tag in text mesh pro to draw the mark color behind the actual text. According to this thread it's possible using a workaround where you use the tag in combination with to force ...
arcadeperfect's user avatar
2 votes
0 answers
25 views

controlling keyboard input confirmation

I have an android app built from unity, and it uses a Text Mesh Pro input field. The problem I have is that, when the user wants to type in the input field, this ...
BumbleBee's user avatar
2 votes
0 answers
206 views

How can I modify the TMP Text shader to add a Venetian blinds effect in Unity?

Is there a way to modify a TMP shader so it has Venetian Blinds effect (text appearing in like blinds pattern) like in Adobe after effects.I found a shader that does that the problem is how do I get ...
Ivan's user avatar
  • 317
1 vote
0 answers
321 views

How to achieve something like anti-aliasing on 8x8 pixel font using TextMeshPro

I use TextMeshPro for my UI text. My text is currently very crispy and looks like this I'd prefer if it looked more like text in 90s arcade games, with more "...
DyingIsFun's user avatar
  • 1,307
1 vote
0 answers
57 views

Accessing list of all sprites in textmeshpro

I am trying to make a tool for selecting icons from textmesh pro in the inspector using a custom property drawer, to select the desired sprite directly instead of having to remember the name. While ...
Whitecold's user avatar
  • 188
1 vote
1 answer
951 views

Get selected string from TextMeshPro input field/text on Android

i am trying to create a tag system for a journal i'm making and that requires being able to select specific parts from either an input field or a text element with the finger (drag and select) and ...
stratos la's user avatar
0 votes
0 answers
880 views

How to Stop TextMeshPro Truncate from Removing Next Line? Unity 2020.3.1f1

In updating from Unity 2019 to 2020, it appears the TextMeshPro (TMP_Text) is behaving differently. The code for TMP stayed the same upon updating Unity, so I presume Unity itself must be doing ...
CodeMonkey's user avatar
1 vote
1 answer
202 views

Unity UI - Make text come out and go back in

In Unity UI I have a TextMeshPro Button and some TextMeshPro Text like in the following image: Is there any function in a Tween Library like DOTween that could make the text look like its coming out ...
Stefan's user avatar
  • 107
0 votes
0 answers
1k views

TMPro Double Outline

Hi, This is what I am trying to achieve: TextMeshPro with double outline. So far I have tried these combinations: TextMeshPro + Outline[int the mid] + Underlay [external]. It is close, but not the ...
amira's user avatar
  • 101
0 votes
1 answer
4k views

How can I customize/remove the caret from Input Fields in Unity?

Goal Change the caret to a non-blinking asterisk. Description I'm using the TextMeshPro variant of the InputField, and my Unity ver. is 2019.3. Potential Solutions Remove Caret I could remove the ...
verified_tinker's user avatar
0 votes
1 answer
1k views

Text Mesh Pro edges are not smooth when viewed by orthographic camera

I have a minimap camera (orthographic camera) which is rendering text mesh pro but the problem is the text edges are not smooth. Here is the screenshot: [ The camera orthographic rendering on render ...
Muhammad Faizan Khan's user avatar