RenameProfile(string, string)
Renames the ID of a profile.
Read time 1 minuteLast updated 13 days ago
Definition
- Type: Method
- Namespace: UnityEditor.ShortcutManagement
- Assembly: UnityEditor.CoreModule
void RenameProfile(string profileId, string newProfileId)
Parameters
Remarks
Changes the ID of the
Throws if or is null. Throws if is not available. Throws if profile is read-only, i.e. IShortcutManager.IsProfileReadOnly returns for . Throws if is already available, i.e. when IShortcutManager.GetAvailableProfileIds contains . Throws if newProfileId is invalid.
ArgumentNullExceptionprofileIdnewProfileIdArgumentExceptionprofileIdArgumentExceptiontrueprofileIdArgumentExceptionnewProfileIdnewProfileIdArgumentException