C# Get Position of specific character in world space problem.

Hello guys, i’ve got a problem with getting the position of a specific character in world space.

my code: using UnityEngine;using System.Collections;using UnityEngine.UI;public c - Pastebin.com

this code works with components but not with (that I need instead of Text) because of the line: textGen.Populate (text, textMeshComp.GetGenerationSettings (extents));

I read that exists TextMesh Pro that extends the functionality of TextMesh.

Can you tell me how to achieve my goal (with TextMesh or TextMesh Pro)?

Thank you in advance!

Included with TextMesh Pro is a utility script called “TMP_TextInfoDebugTool.cs”. Place the script on any type of TextMesh Pro object. This will allow you to visualize the information contained in the TMP_Text.textInfo which includes information about each character, word, line, links, etc.

Looking at that script should help you understand how to get information about individual characters.

There are also several example scenes / scripts included with TMP which make use of the TMP_Text.textInfo. Take a look at example 12 and 12a. If you hold down shift with example 12, you can then interact with individual characters.