The avatar creator is based on a state machine pattern. Its used for switching between different screens(states).
- State To Skip - Allows skipping of states.
- States - Specify selection screen or states.
- Starting State - Set the starting state. If user is logged in, starting state defaults to Avatar Selection screen.
- Default Body Type - Set default body type if body type selection state is skipped.
- Default Gender - Set default body type if gender selection state is skipped.
- Login With Email Selection - Login by sending a one time code to user's email address.
- Avatar Selection - Select/edit the previously created avatar from the list of avatars.
- Gender Selection - Select gender of the avatar.
- BodyType Selection - Select body type of the avatar - full-body or half-body.
- Default Avatar Selection - Select the default avatar from the list of avatars.
- Selfie Selection - Landing page for taking a selfie and use it to generate the avatar.
- Camera Photo Selection - Opens webcam and allows to take a photo.
- Avatar Creator Selection - Landing page for avatar customization.
- Back Button - To go back to the previous screen.
- Next Button - To save the final avatar.
Show different type of loading
- FullScreen Loading - Toggle a full screen loading.
- Popup Loading - Toggle a popup with or without loading.
Popup for when next button is pressed after avatar is finalized in Avatar Creator Selection.
If user is signed in this popup will not be shown.
-
AssetTypes Panel - Contains buttons for different asset-type - face, hairstyle, outfit, glasses, face mask, face wear and head wear. On click the buttons will open the respective asset-type panel.
-
AssetType Panel Prefab - Contains asset buttons for the selected asset type.
-
FaceType Panel Prefab - Contains asset type panels for face - face shape, eyes, eyebrows, nose, mouth, beard, etc.
-
Left AssetType Panel Prefab - Eye color, Skin color, Hair color, etc.
-
AssetType Button Prefab - For selecting an asset type. The thumbnail image are present on path
Samples/Icons/AssetType
.
-
Asset Button Prefab - For selecting an asset with thumbnail and a selection circle. The thumbnail image is fetched from the server.
-
Clear asset selection button - For clearing the selected asset.