Skip to content

Instantly share code, notes, and snippets.

@hiepnd
Created January 21, 2016 10:21
Show Gist options
  • Save hiepnd/be8c21b53f9d71df7657 to your computer and use it in GitHub Desktop.
Save hiepnd/be8c21b53f9d71df7657 to your computer and use it in GitHub Desktop.
using UnityEngine;
using System.Collections;
using UnityEditor;
[CustomEditor(typeof(MeshModifier))]
public class MeshModifierEditor : Editor {
public override void OnInspectorGUI ()
{
DrawDefaultInspector();
var mm = (MeshModifier) target;
if (GUILayout.Button("Log")) {
mm.LogMesh();
}
if (GUILayout.Button("Test")) {
mm.ModNormals();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment