Skip to main content

StaticBatchedRecombiner.AnchoredList<T>

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

A vertex attribute list (such as a UV channel) used while recombining static meshes. It pads itself with defaults to match the vertex count, so channels only some meshes have stay aligned.

Constructors​

MemberWhat it is
AnchoredList(Func<int> getCount)Creates a StaticBatchedRecombiner.AnchoredList from getCount.

Fields​

1 private and internal field
MemberWhat it is
private readonly Func<int> getCountReturns the current vertex count to pad to.

Properties​

MemberWhat it is
List<T> Values { get; }The collected values.

Methods​

MemberWhat it is
void AddRange(List<T> newValues)Pads to the current vertex count, then appends the new values. Does nothing for an empty list.
void Clear()Empties the list.
bool IsNeeded()True if any values were added, padding the list to full length first.
1 private and internal method
MemberWhat it is
private void EnsureLength()Adds default values until the list is as long as the vertex count.

Used in​

Members of other types that take, return or hold a AnchoredList&lt;T>: