In-Game Customization
To allow players to create their character's appearance with the character customization interface when they first start the game, simply call the following methods from the CharacterEntity component:
CharacterEntity().CreateCharacter();
To enable players to customize the appearance of their own character or any NPC later in the game, use the following method from the CharacterEntity component of the player prefab:
CharacterEntity().CustomizeCharacter();
To save the appearance of the player or NPC, use the following method from the CharacterEntity component of the player or NPC prefab:
CharacterEntity().SaveByteFileToDisk(string _absolutePath, BlurPrintType _filter)
CharacterEntity().SavePngFileToDisk(string _absolutePath, Texture2D _photo, BlurPrintType _filter)
For example:
CharacterEntity().SaveByteFileToDisk("E:/player.bytes", BlurPrintType.Character);
You may noticed there is a parameter called BlurPrintType, it is a enum indicate which part of data will be saved:
BlurPrintType .BodyShape: Only the body shape will be saved, the face/skin color/tattoo/hair/outfits won’t be saved.BlurPrintType .Character: Only the character itself will be saved, the outfits won’t be saved.BlurPrintType .Outfits: Only the outfits will be saved.BlurPrintType .AllAppearance: Everything will be saved.