Skip to main content

SpacePoint

A class in Root.Township, the global namespace.

A point in a network of connected points that defines an area attribute, such as darkness or ambience, by weight.

Constructors​

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

Fields​

MemberWhat it is
static UpdateModule updateModuleShared update module for space defined attributes, also used by forest atmosphere.
2 private and internal fields
MemberWhat it is
private SpacePoint[] connectedToNeighbouring points this one links to. Backing field for ConnectedTo.
private float setWeightWeight value for this point. Backing field for SetWeight.

Properties​

MemberWhat it is
SpacePoint[] ConnectedTo { get; }The neighbouring points. Drawn as lines in the editor.
float SetWeight { get; }The attribute value at this point.

Methods​

1 private and internal method
MemberWhat it is
private void OnDrawGizmosSelected()Draws a line to each connected point.

Used in​

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