Skip to main content

ImpactSoundSet

A class in Root.Township, the global namespace.

Asset that pairs a physic material with the Wwise switch used for its impact sounds. Listed in ImpactSoundMap.

Constructors​

MemberWhat it is
ImpactSoundSet()Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets.

Fields​

2 private and internal fields
MemberWhat it is
private Switch materialSwitchBacking field for MaterialSwitch.
private PhysicMaterial physicMaterialBacking field for PhysicMaterial.

Properties​

MemberWhat it is
Switch MaterialSwitch { get; }Wwise switch set when playing impacts on this material.
PhysicMaterial PhysicMaterial { get; }The physic material this set applies to.

Used in​

Members of other types that take, return or hold a ImpactSoundSet: