unity curvedText

    [유니티] Curved Text

    [유니티] Curved Text

    using UnityEngine; using TMPro; [ExecuteInEditMode] public class CurvedText : MonoBehaviour { private TextMeshProUGUI _textComponent; [SerializeField] private AnimationCurve vertexCurve = new(new Keyframe (0.0f, 0.1f), new Keyframe (0.5f, 0.0f), new Keyframe (1.0f, 0.1f)); [SerializeField] private float curveScale = 100.0f; private void Awake () { _textComponent = gameObject.GetComponent (); } p..