RenameProfile(string, string)
Renames the ID of a profile.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
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