enum in Clatter.Core
Audio materials for scrape sounds. Scrape materials are always un-sized, unlike ImpactMaterial values.
Due to separate recording processes, scrape materials don't have the same names as impact materials and don't map exactly to ImpactMaterialUnsized values. See: ScrapeMaterialData.ImpactMaterialUnsizedToScrapeMaterial and code example below.
Value |
---|
plywood |
ceramic |
pvc |
rough_wood |
acrylic |
sanded_acrylic |
vinyl |
poplar_wood |
bass_wood |
polycarbonate |
polyethylene |
sandpaper |
using Clatter.Core;
public class ImpactMaterialToScrapeMaterial
{
public static ScrapeMaterial GetScrapeMaterial(ImpactMaterialUnsized impactMaterialUnsized)
{
return ScrapeMaterialData.ImpactMaterialUnsizedToScrapeMaterial[impactMaterialUnsized];
}
public static ScrapeMaterial GetScrapeMaterial(ImpactMaterial impactMaterial)
{
ImpactMaterialUnsized impactMaterialUnsized = ImpactMaterialData.GetImpactMaterialUnsized(impactMaterial);
return GetScrapeMaterial(impactMaterialUnsized);
}
}