book_4_sparkGenerated
code_blocksInput

Description

The Marble field is a member of the AudioSurface enumeration in the Sandbox API. It represents a surface type with acoustic properties characteristic of marble. This affects how sound interacts with the surface, such as how it reflects or absorbs sound waves.

Usage

Use the AudioSurface.Marble field when you need to specify that a surface in your game environment should have the acoustic properties of marble. This can be useful for simulating realistic sound behavior in environments where marble surfaces are present.

Example

// Example of using AudioSurface.Marble
public class MarbleSurfaceComponent : Component
{
    public void SetSurfaceType()
    {
        // Set the surface type to Marble
        AudioSurface surfaceType = AudioSurface.Marble;
        // Use surfaceType in your logic
    }
}