Inheritence

Summary

Terrain renders heightmap based terrain.

Constructors

Terrain

Properties

ClipMapLodExtentTexels
ClipMapLodLevels
ComponentVersion
ControlMap
EnableCollision
HeightMap
HolesMap
IsConcave
MaterialOverride
RenderType
Storage Storage contains pretty much everything: heightmap, controlmaps, materials, grass, etc etc
TerrainHeight World size of the maximum height of the terrain.
TerrainSize Uniform world size of the width and length of the terrain.

Methods

RayIntersects Given a world ray, finds out the LOCAL position it intersects with this terrain.
SyncCPUTexture Downloads dirty regions from the GPU texture maps onto the CPU, updating collider data and making changes saveable. This is used from the editor after modifying.
SyncGPUTexture Updates the GPU texture maps with the CPU data
UpdateMaterialsBuffer Upload the Terrain buffer, this should be called when materials are added, removed or modified.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.