This file contains hidden or 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
| using UnityEngine; | |
| using TMPro; | |
| using System.Collections; | |
| #if UNITY_EDITOR | |
| using UnityEditor; | |
| #endif | |
| [ExecuteInEditMode] | |
| public class CurvedText : MonoBehaviour |
This file contains hidden or 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
| using UnityEngine; | |
| using UnityEditor; | |
| /* | |
| Fixes a mesh's rotation after importing it from Blender. In Blender, the Z axis points in the | |
| "up" direction, while in Unity, Z points in the "forward" direction. This script rotates the | |
| mesh's vertices so that it is upright again. | |
| To use this, create an object from a mesh in the hierarchy view, then locate the Mesh Filter | |
| in the inspector. There, click on the new "Fix Rotation" button. |