Beispiel #1
0
    public override void OnInspectorGUI()
    {
        DrawDefaultInspector();
        mesh = target as CustomHeart;

        if (GUILayout.Button("Clear Selected Vertices"))
        {
            Debug.Log("Editor Reset");
            assignIndex   = 0;
            selectedIndex = -1;
            mesh.ClearAllData();
        }

        if (mesh.editType.ToString() != "None" && !Application.isPlaying)
        {
            if (GUILayout.Button("Show Normals"))
            {
                mesh.ShowNormals();
            }
        }
    }