API ReferenceSandbox
public sealed class Sandbox.SoundBoxComponent : Sandbox.BaseSoundComponent
Plays a sound within a box.
Related Guides
Broader workflow and conceptual references connected to this API.
Playing Sounds
s&box provides several ways to play sounds in code. You can fire-and-forget a sound at a world position, control it via a SoundHandle, attach it to a GameObject, or use scene components entirely.
Sound
s&box has a full audio system including 2D/3D sound playback, voice chat, positional audio, an audio effects pipeline, and lip sync support.
Constructors
Showing 1 constructors
public SoundBoxComponent()
No results match this filter.
Methods
Showing 2 methods
public virtual void StartSound()
public virtual void StopSound()
No results match this filter.
Properties
Showing 3 properties
public BBox Sandbox.SoundBoxComponent.Inner { get; set; }
public Vector3 Sandbox.SoundBoxComponent.Scale { get; set; }
public Vector3 Sandbox.SoundBoxComponent.SndPos { get; set; }
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Sandbox |
| Type | class |
| Assembly | Sandbox.Engine |
| Doc ID | T:Sandbox.SoundBoxComponent |