Skip to content

Instantly share code, notes, and snippets.

View Diman119's full-sized avatar

Dmitry Bobkov Diman119

View GitHub Profile
@CharlieHess
CharlieHess / CircularTextMeshPro.cs
Last active June 26, 2024 09:12
Improved CircularTextMeshPro using OnPreRenderText
using UnityEngine;
using TMPro;
using Sirenix.OdinInspector;
/// <summary>
/// An extension of TextMeshPro that causes the text to be displayed in a
/// circular arc.
///
/// Adapted from https://github.com/TonyViT/CurvedTextMeshPro and improved.
/// TonyViT's version has some unnecessary properties and doesn't use the