Member of ML.SDK.MLPlayer
Method
void MLPlayer.SetAvatar(string guid)
void MLPlayer.SetAvatar(string guid);
Parameters
Parameter | Type | Description |
---|---|---|
guid | string | The Guid of the desired Avatar. The Function will throw argument exception if this value is empty or doesn’t point to an avatar on server. |
Returns
Summary
Set the avatar for the current avatar. Note that this function only works for local player, and it always shows a prompt for user to allow changing avatar.
You can use ML.SDK.MLPlayer.CurrentAvatarGuid property to check if player have the avatar you desire.