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.
- Listed in Customization and screenshots
- Inherits or implements
CosmeticMeshPartBase<CustomizationArguments>
Constructors
| Member | What it is |
|---|---|
SkinMeshPart() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
1 private and internal field
| Member | What it is |
|---|---|
private static TwoColors impeded | Shared arguments marked impeded, used when the skin is covered. |
Properties
| Member | What it is |
|---|---|
override bool IsTextureSharingForced { get; } | Always true, so skin textures share atlas space even when sharing is off. |
Methods
| Member | What 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. |