Skip to main content

StaticClusterGenerator

A class in Root.Township, Alta.Caves.Displays.

Static generation component that instantiates a random number of plain prefabs around itself during static generation.

Constructors​

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

Fields​

2 private and internal fields
MemberWhat it is
private ObjectPipeline prefabObject pipeline that picks the prefab to instantiate.
private ClusterSettings settingsCluster settings: child count curve and how children are placed.

Methods​

2 private and internal methods
MemberWhat it is
private void IStaticGeneration.Generate(NetworkEntity dynamicParent, SpawnData spawnData)Instantiates a count of prefabs picked from the settings curve, positions them and runs static generation on each.
private void IStaticGeneration.Reset()Destroys all children.