Skip to main content

SkinMeshPart

A class in Root.Township, Alta.Customization.

Mesh part for bare skin (body parts). Always coloured with the character's skin colour and blitted with the skin shaders.

Constructors​

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

Fields​

1 private and internal field
MemberWhat it is
private static TwoColors impededShared arguments marked impeded, used when the skin is covered.

Properties​

MemberWhat it is
override bool IsTextureSharingForced { get; }Always true, so skin textures share atlas space even when sharing is off.

Methods​

MemberWhat it is
override void GetCustomPickupColors(out CosmeticColor primary, out CosmeticColor secondary)Uses the local player's skin colours for the pickup preview, when there is a local player.
protected override void ChangeArguments(ICustomizationHandler handler, CustomizationArguments arguments)Updates the packer input to the skin colour, or the impeded marker when impeded, and repacks.
protected override CosmeticPacker.Input CreateInput(ICustomizationHandler handler, CustomizationArguments arguments)Builds the packer input with the skin colour and copies of the dummy's skin blit materials.