Skip to main content

WoodcutTreeBakerAccess<T>

An abstract class in Root.Township, Alta.Woodcutting.

Adapter the woodcutting tree baker uses to read meshes, materials and LODs from some source type T. Build-time tooling.

Constructors​

MemberWhat it is
protected WoodcutTreeBakerAccess()Creates a WoodcutTreeBakerAccess with default values.

Properties​

MemberWhat it is
virtual bool IsCopyingColors { get; }Whether vertex colours are copied when baking. False unless overridden.
abstract int MaxLods { get; }Most LODs this source supports.

Methods​

MemberWhat it is
abstract int GetLodCount(T item)Number of LODs the item has.
abstract Material GetMaterial(T item, int index)The item's material at a given index.
abstract Mesh GetMesh(T item, int lod)The item's mesh at a given LOD.
abstract string GetName(T item)Name of the item.
abstract Transform GetTransform(T item)Transform of the item.
abstract bool IsValid(T item, int lod)Whether the item has usable data at a given LOD.

Used in​

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