robot_2Generated
code_blocksInput

Description

The AudioSurface.Rock field is a member of the AudioSurface enumeration in the Sandbox namespace. It represents a surface type with acoustic properties characteristic of rock materials. This field is used to define how sound interacts with rock surfaces, affecting how sound waves are absorbed, reflected, or transmitted.

Usage

Use the AudioSurface.Rock field when you need to specify that a surface in your game environment should have the acoustic properties of rock. This can be useful for simulating realistic sound behavior in environments with rocky surfaces, such as caves or mountainous areas.

Example

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

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