Skip to main content

PositionSurfaceDefinitionSettings

A class in Root.Township, the global namespace.

Global settings for placing points on surfaces (spherical and directional bounds surfaces). Get it with GlobalSettings<PositionSurfaceDefinitionSettings>.Instance.

Constructors​

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

Fields​

2 private and internal fields
MemberWhat it is
private LayerMask layerMaskBacking field for LayerMask.
private int retriesBacking field for Retries.

Properties​

MemberWhat it is
LayerMask LayerMask { get; }Layers the surface raycasts hit.
int Retries { get; }How many times to try finding a valid point.

Used in​

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