Created
December 7, 2020 21:42
-
-
Save digiwombat/f6034c33017d5c864c286a1c21e3a292 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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