Skip to main content

StaticBatchedRecombiner.WorkingMesh

A private class in Root.Township, the global namespace. Reach it through att-stubs' publicized assemblies or Harmony's AccessTools.

Private mesh buffer that StaticBatchedRecombiner fills for one material before building the combined mesh.

Constructors​

MemberWhat it is
WorkingMesh()Creates a StaticBatchedRecombiner.WorkingMesh with default values.

Fields​

MemberWhat it is
readonly StaticBatchedRecombiner.AnchoredList<Color> colorsVertex colours, padded to match the vertex count.
readonly StaticBatchedRecombiner.AnchoredList<Vector3> normalsNormals, padded to match the vertex count.
readonly StaticBatchedRecombiner.AnchoredList<Vector4> tangentsTangents, padded to match the vertex count.
readonly List<int> trianglesTriangle indices.
readonly StaticBatchedRecombiner.AnchoredList<Vector2> uvUV channel 0.
readonly StaticBatchedRecombiner.AnchoredList<Vector4> uv2UV channel 1.
readonly StaticBatchedRecombiner.AnchoredList<Vector4> uv3UV channel 2.
readonly StaticBatchedRecombiner.AnchoredList<Vector4> uv4UV channel 3.
readonly List<Vector3> verticesVertex positions in the parent's local space.

Methods​

MemberWhat it is
Mesh CreateMesh()Builds a mesh from the buffers, only setting optional channels that have data, then clears the buffers.