How tonyvit/curvedtextmeshpro works
Project type and purpose
• This is a Unity plugin (“CurvedTextMeshPro”) that extends the TextMesh Pro package.
• Purpose: provide scripts that curve 2D text along mathematical functions (circle arcs, exponential curves or any custom function).
File structure
• Top-level folders:
• Assets/CurvedTextMeshPro
– Scenes/DemoScene.unity (demo usage)
– Scripts/TextProOnACurve.cs (abstract base)
– Scripts/TextProOnACircle.cs, TextProOnAExp.cs (concrete subclasses)
• Assets/TextMesh Pro/... (embedded TextMesh Pro resources: shaders, fonts, materials, docs)
• Packages/manifest.json (Unity Package Manager)
• ProjectSettings/… (standard Unity configuration)
• Key patterns:
• OOP inheritance: TextProOnACurve ← TextProOnACircle & TextProOnAExp
• Plugin architecture: self-contained under Assets/CurvedTextMeshPro
• Demo Scene illustrates end-to-end data flow
README for additional insights
• Describes plugin usage: copy folder, attach one of the provided scripts, or subclass TextProOnACurve for custom curves.
• Highlights dependencies: Unity 2018.3.6f1, TextMesh Pro.
• No runtime servers or databases—purely a client-side rendering plugin.
Diagramming conventions
• From Unity Engine → plugin scripts (execution callbacks)
• From plugin → TextMesh Pro API (mesh updates)
• From user scene/game objects → plugin components
• Blue for Unity core (Engine, Editor)
• Green for third-party dependency (TextMesh Pro)
• Orange for plugin code (CurvedTextMeshPro folders/scripts)
Detailed element checklist
• Interfaces/callbacks: e.g., “OnEnable()/Update() hook”
• Class hierarchy inset: base vs subclasses
• DemoScene as the consumer of the plugin