Пример #1
0
    public override void  OnInspectorGUI()
    {
        string newPresetName = "New Preset " + _presets.Items.Count;

        base.OnInspectorGUI();
        GUILayout.TextField(newPresetName);
        if (GUILayout.Button("Save"))
        {
            _presets.AddPresetFromPoly(newPresetName);
        }
    }
Пример #2
0
 void SavePresetButtonClicked()
 {
     Presets.AddPresetFromPoly(PresetNameInput.text);
     Presets.SaveAllPresets();
     CreatePresetButtons();
 }