Method SetValue
| Edit this page View SourceSetValue((int x, int y, int z), T)
Sets the value at the specified 3D index in the grid.
Declaration
public 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 to set. The index should be within the bounds defined by the grid metadata. |
| T | value | The value of type |
Implements
| Edit this page View SourceSetValue(ReadOnlySpan<T>)
Updates the entire grid's values using a read-only span.
Declaration
public void SetValue(ReadOnlySpan<T> values)
Parameters
| Type | Name | Description |
|---|---|---|
| ReadOnlySpan<T> | values | A read-only span containing the new values for the grid. |
Implements
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | If the length of the provided values does not match the expected size based on the grid metadata. |