Skip to main content

SnapToTerrain

A class in Root.Township, the global namespace.

Generatable part that moves its object down or up onto the terrain height during generation.

Constructors​

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

Methods​

MemberWhat it is
override void GenerateStatic(GenerationCore core, bool isModifyingTerrain)Sets the object's Y to the terrain height at its X and Z.