book_4_sparkGenerated
code_blocksInput

Description

The AudioSurface.Sand field is a member of the AudioSurface enumeration in the Sandbox namespace. It represents a surface type with acoustic properties similar to sand. This field is used to define how sound interacts with surfaces that have sandy characteristics, affecting how sound is absorbed, reflected, or transmitted.

Usage

Use the AudioSurface.Sand field when you need to specify that a surface in your game environment has the acoustic properties of sand. This can be useful for simulating realistic sound behavior in environments such as beaches, deserts, or any area with sandy terrain.

Example

// Example of using AudioSurface.Sand in a game object

public class SandSurfaceComponent : Component
{
    public override void OnInitialize()
    {
        // Set the audio surface type to Sand
        this.SetAudioSurface(AudioSurface.Sand);
    }
}