Description
The Gravel
field is a member of the AudioSurface
enumeration in the Sandbox namespace. It represents a surface type with acoustic properties characteristic of gravel. This can be used to simulate sound interactions with gravel surfaces, affecting how sound is reflected or absorbed.
Usage
Use the AudioSurface.Gravel
field when you need to specify that a surface in your game environment should have the acoustic properties of gravel. This can be particularly useful in scenarios where sound design is critical, such as in realistic simulations or immersive environments.
Example
// Example of using AudioSurface.Gravel in a game object
GameObject myObject = new GameObject();
myObject.AudioSurfaceType = AudioSurface.Gravel;
// This will ensure that any sound interactions with myObject
// will be processed as if they are occurring on a gravel surface.