
## SetMaterialResourceUnits {#setmaterialresourceunits}

Sets units for assignment of a material resource with variable material consumption. The variable material consumption means that as the assignment duration changes, the quantity of materials used changes proportionally.

**Returns:** void Aspose::Tasks::

```cpp
SetMaterialResourceUnits(double units, RateScaleType rateScaleType)
```

| Parameter | Description |
| --- | --- |
| units | Number of units accrued at the time period. |
| rateScaleType | Time period at which the unit value is accrued. |

