MagicaAvatar

overview

Manage and control your avatar.


public int AttachAvatarParts(GameObject avatarPartsPrefab, System.Action<GameObject> instanceAction = null)

Attach avatar parts.
The avatar parts you attach are instantiated internally.
By registering the instanceAction callback, you can get the instantiated object before merging.
Please describe customization about avatar parts in this.
If successful, the ID of the avatar part will be returned.
Access to parts is possible with this avatar part ID.

 


public void DetachAvatarParts(int partsId)

Remove the avatar parts.
Specify the part ID obtained when attaching.
The removed avatar parts will be deleted.

 


public void DetachAvatarParts(GameObject avatarPartsObject)

Remove the avatar parts.
This is the type executed from the GameObject of the part.

 


public void DetachAvatarParts(MagicaAvatarParts parts)

Remove the avatar parts.
This is the type executed from the part class.