Skip to main content

CaveSettings<T>

An abstract class in Root.Township, Alta.Caves.

Base for the cave settings assets (GeneralSettings, BiomeSettings, StreamingSettings). Each is a singleton loaded from Resources/Caves/Settings.

Constructors​

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

Fields​

1 private and internal field
MemberWhat it is
private static T instanceCached asset behind Instance.

Properties​

MemberWhat it is
static T Instance { get; }The settings asset of this type, loaded from Resources/Caves/Settings on first use.