void AddLastAndSelect(RecorderSettings recorder, string desiredName, bool enabled) { recorder.name = GetUniqueRecorderName(desiredName); recorder.Enabled = enabled; m_ControllerSettings.AddRecorderSettings(recorder); var item = CreateRecorderItem(recorder); m_RecordingListItem.Add(item); m_RecordingListItem.selection = item; m_RecordingListItem.Focus(); }
internal void AppyTo(RecorderControllerSettings prefs) { prefs.ReleaseRecorderSettings(); m_Model.ApplyTo(prefs); foreach (var rp in m_RecorderPresets) { var r = (RecorderSettings)CreateFromPreset(rp); prefs.AddRecorderSettings(r); } prefs.Save(); }