public override void OnInspectorGUI() { DrawDefaultInspector(); NavGrid navGrid = target as NavGrid; if (GUILayout.Button("Bake NavGrid")) { navGrid.Bake(); } }