Skip to main content

Surface

A class in Root.Township, the global namespace.

Marks an object with a SurfaceDefinition, which sets how embeddables (like arrows and knives) stick into it. Objects without one use the default definition.

Constructors​

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

Fields​

2 private and internal fields
MemberWhat it is
private static SurfaceDefinition defaultDefinitionBacking field for DefaultDefinition.
private SurfaceDefinition definitionBacking field for Definition.

Properties​

MemberWhat it is
static SurfaceDefinition DefaultDefinition { get; }The SurfaceDefinition/Default resource, loaded on first use; used when no Surface is found in the hit object's parents.
SurfaceDefinition Definition { get; }This surface's definition (embed multiplier and whether direction must line up).