Method GetDefaultMaterialAsync
GetDefaultMaterialAsync(HeadCode, MaterialType, CancellationToken)
Returns the default material for the given head code and type
Declaration
Task<IMaterial?> GetDefaultMaterialAsync(HeadCode headCode, MaterialType materialType, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| HeadCode | headCode | The head code to get the default material for |
| MaterialType | materialType | The material type to get the default material for |
| CancellationToken | cancellationToken | The optional cancellation token |
Returns
| Type | Description |
|---|---|
| Task<IMaterial> | The default material for the given head code and type (or null if none is defined) |