Constructor
new MaterialSet(reporter, settings)
Parameters:
| Name | Type | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
reporter |
Reporter | |||||||||||||||||||||||||
settings |
Object |
Properties
|
- Source:
Members
allMaterials :Array.<WrappedMaterial>
All materials that are in this set. (Available after building)
Type:
- Array.<WrappedMaterial>
- Source:
Methods
(async, protected) _build()
- Source:
has(material) → {boolean}
Check whether a material is in the set
Parameters:
| Name | Type | Description |
|---|---|---|
material |
WrappedMaterial |
- Source:
Returns:
- Type
- boolean
size() → {number}
Number of materials in set
- Source:
Returns:
- Type
- number