Created
January 21, 2016 10:21
-
-
Save hiepnd/be8c21b53f9d71df7657 to your computer and use it in GitHub Desktop.
This file contains 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 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