RenameProfile(string, string)
Renames the ID of a profile.
읽는 시간 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