DynamicPathPart
A class in Root.Township, the global namespace.
Generation part that, during dynamic generation on a forest node map, spawns a network prefab at its position and initialises it with the node's edge as a dynamic path.
- Listed in Global namespace: C to D
- Inherits or implements
GeneratablePart - Attributes
AddComponentMenu
Constructors
| Member | What it is |
|---|---|
DynamicPathPart() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
1 private and internal field
| Member | What it is |
|---|---|
private ObjectPipeline prefab | Pipeline that picks the network prefab to spawn. |
Methods
| Member | What it is |
|---|---|
override void GenerateDynamic(GenerationCore core) | Gets a prefab from the pipeline, spawns it in the best location chunk and calls IDynamicPath.Initialize with the edge. |