TextMeshPro.outlineWidth

float outlineWidth;

Description

The thickness of the characters outline. Setting this value will result in an instance of the font material. Float range is from 0.0 to 0.5.


using UnityEngine;
using System.Collections;
using TMPro;

public class ExampleClass : MonoBehaviour
{
    void Awake()
    {
        TextMeshPro textmeshPro = GetComponent<TextMeshPro>();
        textmeshPro.outlineWidth = 0.2f;
    }    
}