BiomePreset
A class in Root.Township, the global namespace.
Hashed ScriptableObject holding a serialized biome, referenced by GenerationStarter to generate an area. The generated biome is built on first use and cached.
- Listed in Global namespace: A to B
- Inherits or implements
HashedGeneralValue<BiomePreset> - Derived types
BiomePreset,BiomePreset.Create - Nested types
Create
Constructors
| Member | What it is |
|---|---|
BiomePreset() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Fields
2 private and internal fields
| Member | What it is |
|---|---|
private SerializedGeneratedBiome biome | Serialized biome settings. |
private GeneratedBiome generated | Cached result of Biome. Not serialized. |
Properties
| Member | What it is |
|---|---|
GeneratedBiome Biome { get; } | The generated biome, built from the serialized one the first time it is read. |
Used in
Members of other types that take, return or hold a BiomePreset: