s&
About
The Project
info
About s&box
map
Roadmap
monitoring
Metrics
Engine startup and usage numbers
Updates
newspaper
Latest News
published_with_changes
Changes
Release-by-release changelog
Games
Browse Games
Discover Games
gamejams
voting
Game Jam III
Ends
Fri 25 Sep
Theme
One More Round
Voting is open. Play the entries and pick the winner.
£
50,000
prizepool
View the jam
Workshop
Playable
sports_esports
Games
Standalone games and gamemodes
Assets
landscape
Maps
view_in_ar
Models
texture
Materials
apparel
Clothing
apps
Everything
Every asset type in one list
Forum
Learn
Documentation
rocket_launch
Getting Started
docs
Documentation
api
API Reference
Resources
school
Tutorials
manage_search
Code Search
Get s&box
Sign in with Steam
Api
Components
SoundscapeTrigger
chevron_left
Components
class
SoundscapeTrigger
Constructors
functions
SoundscapeTrigger
Properties
data_object
BoxSize
data_object
Playing
data_object
Radius
data_object
Soundscape
data_object
StayActiveOnExit
data_object
TargetMixer
data_object
Type
data_object
Volume
Methods
lock
DrawGizmos
lock
OnDestroy
lock
OnDisabled
lock
OnUpdate
functions
TestListenerPosition
SoundscapeTrigger
Plays a soundscape when the listener enters the trigger area.
class
Sandbox
.
account_tree
extends
Component
Sandbox.Engine
build
Constructors
1
SoundscapeTrigger
(
)
data_object
Properties
8
BoxSize
Vector3
The size of the Soundscape when Sandbox.SoundscapeTrigger.Type is set to Sandbox.SoundscapeTrigger.TriggerType.Box.
Playing
bool
Radius
float
The radius of the Soundscape when Sandbox.SoundscapeTrigger.Type is set to Sandbox.SoundscapeTrigger.TriggerType.Sphere.
Soundscape
Soundscape
StayActiveOnExit
bool
When true the soundscape will keep playing after exiting the area, and will only stop playing once another soundscape takes over.
TargetMixer
MixerHandle
The mixer that the soundscape will play on.
Type
TriggerType
Determines when/where the soundscape can be heard.
Volume
float
functions
Methods
5
DrawGizmos
(
)
OnDestroy
(
)
OnDisabled
(
)
OnUpdate
(
)
TestListenerPosition
(
position
)
bool
Return true if they should hear this soundscape when in this position
Inheritance
Component
SoundscapeTrigger
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.