Table of Contents

Interface ICharacterAppearanceManager

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

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

data CharacterAppearanceData

The 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

proportions RaceProportions

The 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

renderer SkinnedMeshRenderer

The 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

name string

Blend shape name (e.g., "Weight", "MuscleMass").

value float

Blend weight (0-100).

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

equipmentRenderer SkinnedMeshRenderer

The 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

renderer SkinnedMeshRenderer

The equipment SkinnedMeshRenderer to unregister.