Struct CharacterAppearanceData
Serializable snapshot of a character's full visual appearance. Used for save/load, network replication, and character creation.
All values are deterministic — applying the same data produces the same visual result.
[Serializable]
public struct CharacterAppearanceData
- Inherited Members
Fields
ArmLength
Arm length multiplier. Affects upper and lower arm bones.
public float ArmLength
Field Value
EquippedItemIds
IDs of equipped items, indexed by (byte)ItemSlot. Length must match the ItemSlot enum count.
public long[] EquippedItemIds
Field Value
- long[]
Gender
The character's gender.
public CharacterGender Gender
Field Value
HeadScale
Head scale multiplier. Affects head and neck bones.
public float HeadScale
Field Value
Height
Overall height multiplier. Affects spine and leg bones.
public float Height
Field Value
LegLength
Leg length multiplier. Affects upper and lower leg bones.
public float LegLength
Field Value
ModelIndex
The model index within the race/gender model set.
public int ModelIndex
Field Value
MuscleMass
Muscle mass blend shape (0-100).
public float MuscleMass
Field Value
RaceId
The race template ID.
public int RaceId
Field Value
ShoulderWidth
Shoulder width multiplier. Affects clavicle/shoulder bone positions.
public float ShoulderWidth
Field Value
TorsoLength
Torso length multiplier. Affects spine and chest bones.
public float TorsoLength
Field Value
Weight
Body weight blend shape (0-100).
public float Weight
Field Value
Methods
Default(int, CharacterGender, int)
Returns the default appearance for a given race.
public static CharacterAppearanceData Default(int raceId, CharacterGender gender, int modelIndex)
Parameters
raceIdintThe race template ID to build defaults for.
genderCharacterGenderThe character gender.
modelIndexintThe model index within the race/gender set.
Returns
- CharacterAppearanceData
A CharacterAppearanceData with default proportions and empty equipment.