Questions tagged [text-mesh-pro]
The text-mesh-pro tag has no summary.
32 questions
0
votes
2
answers
119
views
Bug with TextMeshPro in InputField
I made my pixel font and imported it into Unity using TextMeshPro. It works perfectly everywhere except InputFields. When I change Font Asset to my font, the input ...
0
votes
1
answer
224
views
Unity: Cannot access TMP_Text object from script in gameobject
I'm trying to set the color property of a TMP_Text object but keep getting Object reference not set to instance of an object error. Setup is as follows;
I have a ...
1
vote
0
answers
294
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 ...
1
vote
1
answer
331
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 ...
0
votes
1
answer
146
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 ...
0
votes
1
answer
1k
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 ...
1
vote
0
answers
252
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 ...
0
votes
1
answer
324
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 ...
1
vote
4
answers
2k
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 ...
1
vote
0
answers
240
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 Pro....
0
votes
0
answers
190
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 ...
1
vote
0
answers
184
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 ...
3
votes
1
answer
2k
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 ...
-1
votes
1
answer
555
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. ...
0
votes
1
answer
3k
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 > ...
1
vote
0
answers
301
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).
...
3
votes
1
answer
882
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 ...
0
votes
0
answers
873
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 ...
0
votes
1
answer
3k
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. ...
1
vote
0
answers
1k
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 ...
3
votes
0
answers
2k
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 ...
1
vote
0
answers
232
views
"Assertion failed" error when running coroutines in edit mode - Unity
TLDR:
Calling coroutines from OnValidate in edit mode leads to following error:
...
2
votes
0
answers
34
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 ...
2
votes
0
answers
276
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 ...
1
vote
0
answers
482
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 "...
1
vote
0
answers
82
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 ...
1
vote
1
answer
1k
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 ...
0
votes
0
answers
1k
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 ...
1
vote
1
answer
260
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 ...
0
votes
1
answer
2k
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 ...
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 ...
0
votes
1
answer
2k
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 ...