Hi
I’m working with ‘runtime multi-style for tmpro’. Now we can create TMPro font asset by the font file, and it works great. But I have some problem with creating style for them. Is there any way turn on glow or outline effect by c# scripting? I mean not setting properties through inspector.
Some of what you want to do is available from the TextMeshPro object’s properties. For example, you can control the outline size like this:
using UnityEngine;
using TMPro;
public class SetFX : MonoBehaviour
{
public TextMeshPro tmp;
private void OnMouseDown()
{
tmp.outlineWidth = .2f;
}
}