ICosmeticMeshPartBase
An interface in Root.Township, Alta.Customization.
A cosmetic part made of meshes and textures that gets packed into the character's combined cosmetic mesh, with two colours.
- Listed in Customization and screenshots
- Inherits or implements
ICustomizationPart - Derived types
CosmeticMeshPartBase<T>
Properties
| Member | What it is |
|---|---|
ICosmeticMeshPartBase CopyColorFrom { get; } | Another part whose colours this one follows, or null. |
Mesh[] ImpededLods { get; } | Mesh LODs used instead of Lods when the part's arguments say it's impeded (probably covered by another cosmetic). |
bool IsAlphaBlending { get; } | Whether the part uses alpha blending. |
bool IsDisabledOnAndroid { get; } | Whether to skip the part on Android. Always false in the base implementation. |
bool IsGeneratingBackFaces { get; } | Whether to add back faces when packing. |
bool IsTextureSharingForced { get; } | Whether the texture must be shared. False in the base implementation. |
Mesh[] Lods { get; } | Normal mesh LODs. |
string name { get; } | The part's object name. |
Texture2D Normal { get; } | Normal map texture. |
CosmeticPacker.PartId PartId { get; } | Packing id: the visual's hash and the part index. |
Texture2D Texture { get; } | Diffuse texture. |
int WorkingIndex { get; set; } | Scratch index used while packing and colouring. |
Methods
| Member | What it is |
|---|---|
bool ApplyColorToArguments(CosmeticColor color, bool isPrimary, CustomizationArguments[] arguments) | Sets the primary or secondary colour in the arguments, and on the linked part. False if nothing changed or colour is locked. |
void GetCustomPickupColors(out CosmeticColor primary, out CosmeticColor secondary) | Colours to use when shown as a pickup. Null by default. |
Used in
Members of other types that take, return or hold a ICosmeticMeshPartBase: