PaintTarget
public struct PaintTargetNamespace Chassis.Api
Added in 1.7.0
One material slot that takes the body paint: a renderer and the index into its materials. Chassis paints VehicleColor.BodyMeshes unless a mod names its own targets with ChassisApi.SetPaintTargets. A Secondary slot takes the second paint (“paint2”) instead and keeps its own material without one. A Flat slot drops its colour texture while painted (the normal map stays), for a part whose texture is dark or two-toned: the paint multiplies the texture, so it would show darker than chosen.
Fields
Section titled “Fields”Renderer
Section titled “Renderer”public Renderer RendererAdded in 1.7.0
MaterialIndex
Section titled “MaterialIndex”public int MaterialIndexAdded in 1.7.0
Secondary
Section titled “Secondary”public bool SecondaryAdded in 1.7.0
public bool FlatAdded in 1.7.0
Constructors
Section titled “Constructors”PaintTarget(Renderer, int)
Section titled “PaintTarget(Renderer, int)”public PaintTarget(Renderer renderer, int materialIndex)Added in 1.7.0
PaintTarget(Renderer, int, bool)
Section titled “PaintTarget(Renderer, int, bool)”public PaintTarget(Renderer renderer, int materialIndex, bool secondary)Added in 1.7.0