public override void OnInspectorGUI() { string newPresetName = "New Preset " + _presets.Items.Count; base.OnInspectorGUI(); GUILayout.TextField(newPresetName); if (GUILayout.Button("Save")) { _presets.AddPresetFromPoly(newPresetName); } }
void SavePresetButtonClicked() { Presets.AddPresetFromPoly(PresetNameInput.text); Presets.SaveAllPresets(); CreatePresetButtons(); }