A class in Root.Township, the global namespace.
Static generation step that spawns one networked prefab (picked by an ObjectPipeline) at its own transform, saved as a child of the dynamic parent. Server side, run through StaticGenerationHelper.
Constructors
| Member | What it is |
|---|
StaticDynamicSpawner() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
3 private and internal fields
Methods
2 private and internal methods
| Member | What it is |
|---|
private void IStaticGeneration.Generate(NetworkEntity dynamicParent, SpawnData spawnData) | Spawns the chosen NetworkPrefab at this transform (adjusted by positioning) as a saved child of dynamicParent, but only when SpawnData says this is a generating first load. |
private void IStaticGeneration.Reset() | Destroys the editor preview object, if any. |