Skip to main content

BiomeSphereComponent

A class in Root.Township, the global namespace.

Scene component that defines a sphere of a forest biome at its position, turned into a BiomeSphere for generation.

Constructors​

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

Fields​

4 private and internal fields
MemberWhat it is
private ForestBiome biomeThe forest biome this sphere applies.
private float radiusSphere radius (5 by default).
private int seedSeed passed to the biome sphere.
private float strengthBiome strength (1 by default).

Methods​

MemberWhat it is
BiomeSphere Create()Builds a BiomeSphere from the seed, position, radius, strength and biome.
1 private and internal method
MemberWhat it is
private void OnDrawGizmosSelected()Editor: draws the sphere in the biome's colour.