Method SetValue
| Edit this page View SourceSetValue((int x, int y, int z), T)
Sets the value at the specified 3D index.
Declaration
void SetValue((int x, int y, int z) index, T value)
Parameters
| Type | Name | Description |
|---|---|---|
| (int x, int y, int z) | index | The 3D index (x, y, z) of the voxel. |
| T | value | The value to set. |
SetValue(ReadOnlySpan<T>)
Updates the entire grid's values using a read-only span. The length of the input span must match the expected size based on the grid metadata.
Declaration
void SetValue(ReadOnlySpan<T> values)
Parameters
| Type | Name | Description |
|---|---|---|
| ReadOnlySpan<T> | values | A read-only span containing the new values for the grid. |