Skip to content

Instantly share code, notes, and snippets.

@digiwombat
Created December 7, 2020 21:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save digiwombat/f6034c33017d5c864c286a1c21e3a292 to your computer and use it in GitHub Desktop.
Save digiwombat/f6034c33017d5c864c286a1c21e3a292 to your computer and use it in GitHub Desktop.
// A cheap, ugly mask fix for SuperTextMesh if you enable/disable the parent mask of an STM mesh.
using UnityEngine;
public class STMFixMask : MonoBehaviour
{
private SuperTextMesh stm;
private void Awake()
{
stm = GetComponent<SuperTextMesh>();
}
private void OnEnable()
{
//Debug.Log("Force rebuild");
stm.Rebuild();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment