Skip to main content

WoodcutPointCollection

A class in Root.Township, the global namespace.

The synced list of woodcut points on a tree model (WoodcutTreeModel). Points can be generated in the editor from a skinned mesh's bones.

Constructors​

MemberWhat it is
WoodcutPointCollection()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

1 private and internal field
MemberWhat it is
private GameObject generateFromEditor helper: drop in a skinned mesh object to generate points from its bones.

Methods​

MemberWhat it is
override void SyncAllChildren()Only syncs on a dedicated server, not in local test.
protected override void OnValidate()Editor: if generateFrom is set, replaces the points with its skinned mesh's bone positions and clears the field.
1 private and internal method
MemberWhat it is
private void OnDrawGizmosSelected()Draws each point as a small sphere in a rainbow of colours.

Used in​

Members of other types that take, return or hold a WoodcutPointCollection: