public class CharacterCustomization
Switch character settings by selector index Example
public void SwitchCharacterSettings(int settingsIndex);
Init character by settings
public void InitializeMeshes(CharacterSettings newSettings = null);
Update bounds all character meshes
public void UpdateSkinnedMeshesOffscreenBounds()
Get all character selectors Example
public List<CharacterSettingsSelector> GetCharacterSettingsSelectors()
Reset body colors to default values Example
public void ResetBodyColors()
Reset body material from all character parts to default
public void ResetBodyMaterial()
Initialize body colors
public void InitColors()
Set body shape (blend shapes) Example
public void SetBlendshapeValue(CharacterBlendShapeType type, float weight, string[] forPart = null, CharacterElementType[] forClothPart = null)
Change LOD level
public void ForceLOD(int lodLevel)
Set character element Example
public void SetElementByIndex(CharacterElementType type, int index)
Clear character element
public void ClearElement(CharacterElementType type)
Set character height Example
public void SetHeight(float height)
Set character head size Example
public void SetHeadSize(float size)
Set character feet offset. Usually used for tall shoes.
public void SetFeetOffset(Vector3 offset)
Get clothes anchor(the mesh to which the clothes are attached) by type
public ClothesAnchor GetClothesAnchor(CharacterElementType type)
Get character part by name
public CharacterPart GetCharacterPart(string name)
Get all character meshes by LOD level
public List<SkinnedMeshRenderer> GetAllMeshesByLod(int lod)
Get all character meshes
public List<SkinnedMeshRenderer> GetAllMeshes()
Hide character parts
public void HideParts(string[] parts)
UnHide character parts
public void UnHideParts(string[] parts, CharacterElementType hidePartsForElement)
Set body color by type Example
public void SetBodyColor(BodyColorPart bodyColorPart, Color color)
Get the used color of a specific part of the body
public Color GetBodyColor(BodyColorPart bodyColorPart)
Set character setup, use setup class
public void SetCharacterSetup(CharacterCustomizationSetup characterCustomizationSetup)
Generate setup class from current character
public CharacterCustomizationSetup GetSetup()
Apply saved data to current character
public void ApplySavedCharacterData(SavedCharacterData data)
Load character from file
public void LoadCharacterFromFile(string path)
Gets a list of character saves from the directory
public List<SavedCharacterData> GetSavedCharacterDatas(string path = "")
Delete all character saves from default directory
public void ClearSavedData()
Save character to file
public void SaveCharacterToFile(CharacterCustomizationSetup.CharacterFileSaveFormat format, string path = "", string name = "")
Recalculate all blendshapes
public void RecalculateShapes()
Combine all character parts to single mesh (include all LODs) Example
public void BakeCharacter(bool usePreBuiltMeshes = false)
Clear all combine meshes, and enable customizable mode
public void ClearBake()
Recalculate LODs
public void RecalculateLOD()
Change the number of LODs
public void SetLODRange(int minLod, int maxLod)
Get combined state
public bool IsBaked()
Get element preset
public CharacterElementsPreset GetElementsPreset(CharacterElementType type, int index)
Get all element presets by type
public List<CharacterElementsPreset> GetElementsPresets(CharacterElementType type)
Play animation Example
public void PlayBlendshapeAnimation(string animationName, float duration = 1f, float weightPower = 1f)
Stop any emotion
public void StopBlendshapeAnimations()
Reset all character changes
public void ResetAll(bool ignore_settingsDefaultElements = true)
Randomize character customization Example
public void Randomize()
Get character animator
public Animator GetAnimator()
Powered by BetterDocs