Method SetHeightMap
- Namespace
- Pinwheel.Vista.RealWorldData
- Assembly
- Pinwheel.Vista.RealWorldData.Runtime.dll
SetHeightMap(float[], Vector2Int)
Replaces the stored height-map buffer and invalidates the lazily built runtime texture.
protected void SetHeightMap(float[] data, Vector2Int size)
Parameters
datafloat[]Float height samples to store.
sizeVector2IntTexture dimensions corresponding to
data.
Exceptions
- ArgumentException
Thrown when the buffer length does not match the supplied dimensions.