Skip to content

Instantly share code, notes, and snippets.

@cjhodge
cjhodge / NormalsVisualizer.cs
Created February 7, 2020 13:07 — forked from mandarinx/NormalsVisualizer.cs
Visualize mesh normals in Unity3D
using UnityEditor;
using UnityEngine;
[CustomEditor(typeof(MeshFilter))]
public class NormalsVisualizer : Editor {
private Mesh mesh;
void OnEnable() {
MeshFilter mf = target as MeshFilter;