API Overview¶
This page provides a structured overview of the CharacterCustomization class and its public methods. It is intended as developer documentation for integrating and extending character customization functionality.
🔄 Character Switching¶
Switch character settings by index
settingsIndexint-🔨 Initialization¶
Initialize character by settings
newSettingsCharacterSettingsnull🪢 Mesh & Bounds¶
🔷 Blend Shapes & LOD¶
Set body shape (blend shapes)
void SetBlendshapeValue(CharacterBlendShapeType type, float weight, string[] forPart = null, CharacterElementType[] forClothPart = null)
typeCharacterBlendShapeTypenullweightfloat0forPartstring[]nullforClothPartCharacterElementType[]nullChange LOD level
lodLevelint-🧩 Elements & Parts¶
Set character element
typeCharacterElementType-indexint-Clear character element
typeCharacterElementType-Set character height
heightfloat-Set character head size
sizefloat-Set character feet offset
offsetVector3zeroGet clothes anchor
typeCharacterElementTypenullGet character part by name
namestring""Get all character meshes by LOD level
lodint-Hide character parts
partsstring[]-Unhide character parts
partsstring[]-hidePartsForElementCharacterElementType-🎨 Colors & Materials¶
Set body color by type
bodyColorPartBodyColorPart-colorColor-Get the used color of a body part
bodyColorPartBodyColorPart-🧬 Setup & Serialization¶
Set character setup
characterCustomizationSetupCharacterCustomizationSetup-Apply saved data to character
dataSavedCharacterData-Load character from file
pathstring-Save character to file
void SaveCharacterToFile(CharacterCustomizationSetup.CharacterFileSaveFormat format, string path = "", string name = "")
formatCharacterFileSaveFormatjsonpathstring-namestring-Get list of saved characters
pathstring-🧱 Mesh Combination¶
Combine all parts to a single mesh (includes LODs)
usePreBuiltMeshesboolfalse🧰 Utilities¶
Get all character settings selectors
Reset all character changes
ignore_settingsDefaultElementsbooltrue🎠Emotions & Animations¶
Play a blendshape animation
animationNamestring-durationfloat1.0fweightPowerfloat1.0f📦 Presets¶
Get element preset
typeCharacterElementType-indexint-Get all element presets by type
typeCharacterElementType-🧩 Need examples or usage snippets? Consider checking the documentation or API examples section.