Skip to main content

CosmeticHairPart

A class in Root.Township, Alta.Customization.

Mesh part for hair. After a random roll it may remove the hair, or else copies the eyebrow colours onto it.

Constructors​

MemberWhat it is
CosmeticHairPart()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

2 private and internal fields
MemberWhat it is
private float feminineRemoveChanceChance (0 to 1) that randomizing leaves a feminine body type bald. Default 0.
private float masculineRemoveChanceChance (0 to 1) that randomizing leaves a masculine body type bald. Default 0.2.

Methods​

MemberWhat it is
override async Task PostRandomize(PlayerCosmeticWrapper cosmeticWrapper)After randomizing, rolls against the body type's remove chance to drop the hair; if kept, copies the eyebrow slot's two colours onto the hair.