RenameProfile(string, string)
Renames the ID of a profile.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEditor.ShortcutManagement
- Assembly: UnityEditor
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