Skip to content

Instantly share code, notes, and snippets.

View bilal-arikan's full-sized avatar
🏠
Working from home

Bilal ARIKAN bilal-arikan

🏠
Working from home
View GitHub Profile
@n-taku
n-taku / CurvedText.cs
Last active June 2, 2023 10:56
TextMeshProでAnimationのカーブに沿って文字を並べる
using UnityEngine;
using TMPro;
using System.Collections;
#if UNITY_EDITOR
using UnityEditor;
#endif
[ExecuteInEditMode]
public class CurvedText : MonoBehaviour
@blizzy78
blizzy78 / FixMeshRotationEditor.cs
Created March 22, 2015 05:40
FixMeshRotationEditor.cs - Unity: Fix mesh's rotation after importing from Blender
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.