Method GetMaterial
GetMaterial(BatchMaterialID)
Returns the Material that corresponds to the given registered material ID, or null
if no such material exists.
Declaration
public Material GetMaterial(BatchMaterialID material)
Parameters
Type | Name | Description |
---|---|---|
BatchMaterialID | material | A material ID received from RegisterMaterial(Material). |
Returns
Type | Description |
---|---|
Material | The Material object corresponding to the given material ID if the ID is valid, or |