SnapToTerrain
A class in Root.Township, the global namespace.
Generatable part that moves its object down or up onto the terrain height during generation.
- Listed in Global namespace: S
- Inherits or implements
GeneratablePart - Attributes
AddComponentMenu
Constructors
| Member | What it is |
|---|---|
SnapToTerrain() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Methods
| Member | What it is |
|---|---|
override void GenerateStatic(GenerationCore core, bool isModifyingTerrain) | Sets the object's Y to the terrain height at its X and Z. |