Skip to main content

GrowthDefinition

A class in Root.Township, the global namespace.

Asset listing the stages something grows through, used by GrowerComponent.

Constructors​

MemberWhat it is
GrowthDefinition()Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets.

Fields​

2 private and internal fields
MemberWhat it is
private bool isChildingToParentAtEndBacking field for IsChildingToParentAtEnd: whether the grown object is chunk-parented to the grower's chunking parent when growth ends.
private GrowthStage[] stagesBacking field for Stages.

Properties​

MemberWhat it is
bool IsChildingToParentAtEnd { get; }Whether the grown object is chunk-childed to the grower's chunking parent when growth ends, instead of standing on its own.
GrowthStage[] Stages { get; }The growth stages in order.

Used in​

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