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