public override void OnInspectorGUI() { DrawDefaultInspector(); if (GUILayout.Button("Regenerate")) { TGMap tileMap = (TGMap)target; tileMap.BuildMesh(); } }
public override void OnInspectorGUI() { base.OnInspectorGUI(); if (GUILayout.Button("Regenerate")) { TGMap map = (TGMap)target; map.BuildMesh(); } }
// float v = 0.5f; public override void OnInspectorGUI() { DrawDefaultInspector(); // EditorGUILayout.BeginVertical (); // v = EditorGUILayout.Slider (v, 0, 2.0f); // EditorGUILayout.EndVertical (); if (GUILayout.Button("Regenerate")) { TGMap tileMap = (TGMap)target; tileMap.BuildMesh(); } }