AudioReverbZone
Reverb Zones are used when you want to create location based ambient effects in the Scene.
Read time 7 minutesLast updated 4 days ago
Definition
- Type: Class
- Namespace: UnityEngine
- Assembly: UnityEngine.AudioModule
- Inherits from: Behaviour
[RequireComponent(typeof(Transform))]public sealed class AudioReverbZone : Behaviour
Remarks
As the Audio Listener moves into a Reverb Zone, the ambient effect associated with the zone is gradually applied. At the max distance there is no effect and at the min distance the effect is fully applied. For example you can gradually change your character's footsteps sounds and create the feeling like you where entering into a cavern, going trough a room, swimming underwater, etc.
You can always mix reverb zones to have combined effects. For more info check Reverb Zones in the manual.
Properties
Property | Description |
|---|---|
| decayHFRatio | High-frequency to mid-frequency decay time ratio. |
| decayTime | Reverberation decay time at mid frequencies. |
| density | Value that controls the modal density in the late reverberation decay. |
| diffusion | Value that controls the echo density in the late reverberation decay. |
| HFReference | Reference high frequency (hz). |
| LFReference | Reference low frequency (hz). |
| maxDistance | The distance from the centerpoint that the reverb will not have any effect. Default = 15.0. |
| minDistance | The distance from the centerpoint that the reverb will have full effect at. Default = 10.0. |
| reflections | Early reflections level relative to room effect. |
| reflectionsDelay | Initial reflection delay time. |
| reverb | Late reverberation level relative to room effect. |
| reverbDelay | Late reverberation delay time relative to initial reflection. |
| reverbPreset | Set/Get reverb preset properties. |
| room | Room effect level (at mid frequencies). |
| roomHF | Relative room effect level at high frequencies. |
| roomLF | Relative room effect level at low frequencies. |
Inheritance
Operators
Operator | Description |
|---|---|
| operator == | Compares two object references to see if they refer to the same object. |
| bool | Determines whether the object exists. |
| operator != | Compares if two objects refer to a different object. |