Interface ICharacterAppearanceManager
Manages character visual appearance: bone scaling for body proportions, blend shape synchronization across body and equipment, and appearance data serialization.
public interface ICharacterAppearanceManager : ICharacterBehaviour
- Inherited Members
Methods
ApplyAppearanceData(CharacterAppearanceData)
Restores appearance from a serialized data snapshot.
void ApplyAppearanceData(CharacterAppearanceData data)
Parameters
dataCharacterAppearanceDataThe appearance data to apply.
ApplyRaceProportions(RaceProportions)
Applies race default proportions via bone scaling. Called once when the character model is instantiated.
void ApplyRaceProportions(RaceProportions proportions)
Parameters
proportionsRaceProportionsThe race proportion values to apply.
GetAppearanceData()
Returns a snapshot of the character's current appearance.
CharacterAppearanceData GetAppearanceData()
Returns
- CharacterAppearanceData
A snapshot with all proportions, blend shapes, and equipped item IDs.
RegisterEquipmentRenderer(SkinnedMeshRenderer)
Registers an equipment renderer for blend shape syncing. Called by EquipmentVisualController when an item is equipped.
void RegisterEquipmentRenderer(SkinnedMeshRenderer renderer)
Parameters
rendererSkinnedMeshRendererThe equipment SkinnedMeshRenderer to register.
SetBlendShape(string, float)
Sets a blend shape value on all body region renderers and all equipped equipment renderers that have a matching blend shape name.
void SetBlendShape(string name, float value)
Parameters
SyncBlendShapesToEquipment(SkinnedMeshRenderer)
Pushes current body blend shape values to an equipment SkinnedMeshRenderer. Only applies blend shapes that exist on the equipment mesh. Called when new equipment is equipped.
void SyncBlendShapesToEquipment(SkinnedMeshRenderer equipmentRenderer)
Parameters
equipmentRendererSkinnedMeshRendererThe newly equipped item's SkinnedMeshRenderer.
UnregisterEquipmentRenderer(SkinnedMeshRenderer)
Unregisters an equipment renderer from blend shape syncing. Called by EquipmentVisualController when an item is unequipped.
void UnregisterEquipmentRenderer(SkinnedMeshRenderer renderer)
Parameters
rendererSkinnedMeshRendererThe equipment SkinnedMeshRenderer to unregister.