Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


RenameProfile(string, string)

Renames the ID of a profile.
Read time 1 minuteLast updated 13 days ago

Definition

void RenameProfile(string profileId, string newProfileId)

Parameters

profileId

ID of existing profile.

newProfileId

New ID for profile.

Remarks

Changes the ID of the
Throws
ArgumentNullException
if
profileId
or
newProfileId
is null. Throws
ArgumentException
if
profileId
is not available. Throws
ArgumentException
if profile is read-only, i.e. IShortcutManager.IsProfileReadOnly returns
true
for
profileId
. Throws
ArgumentException
if
newProfileId
is already available, i.e. when IShortcutManager.GetAvailableProfileIds contains
newProfileId
. Throws
ArgumentException
if newProfileId is invalid.