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
| Member | What it is |
|---|
StaticClusterGenerator() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
2 private and internal fields
| Member | What it is |
|---|
private ObjectPipeline prefab | Object pipeline that picks the prefab to instantiate. |
private ClusterSettings settings | Cluster settings: child count curve and how children are placed. |
Methods
2 private and internal methods
| Member | What 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. |