Component that can emit sound effects from its location.
More...
|
| bool | IsPlaying => _inner.isPlaying |
| | True if this emitter is currently playing a sound effect. More...
|
| |
|
| override void | OnInitialize () |
| | Called only once, when the component is first attached to an entity and is ready to add or retrieve other components. More...
|
| |
| override void | OnDestroy () |
| | Called when this component is removed, or the parent entity is destroyed. More...
|
| |
| override void | OnEnable () |
| | Called each time this component goes from being disabled to enabled. More...
|
| |
| override void | OnDisable () |
| | Called each time this component goes from being enabled to disabled. More...
|
| |
Component that can emit sound effects from its location.
| override void Chunks.Audio.SoundEmitter.OnDestroy |
( |
| ) |
|
|
protected |
Called when this component is removed, or the parent entity is destroyed.
| override void Chunks.Audio.SoundEmitter.OnDisable |
( |
| ) |
|
|
protected |
Called each time this component goes from being enabled to disabled.
| override void Chunks.Audio.SoundEmitter.OnEnable |
( |
| ) |
|
|
protected |
Called each time this component goes from being disabled to enabled.
| override void Chunks.Audio.SoundEmitter.OnInitialize |
( |
| ) |
|
|
protected |
Called only once, when the component is first attached to an entity and is ready to add or retrieve other components.
| void Chunks.Audio.SoundEmitter.Play |
( |
SoundEffect |
effect | ) |
|
Start playing a given sound effect.
- Parameters
-
| effect | Sound effect resource to play |
Start playing a given sound effect with a parameter modification action.
- Parameters
-
| effect | Sound effect resource to play |
| modifier | Parameter modification action |
| void Chunks.Audio.SoundEmitter.Stop |
( |
| ) |
|
Stop playing the current sound effect.
| bool Chunks.Audio.SoundEmitter.IsPlaying => _inner.isPlaying |
True if this emitter is currently playing a sound effect.
| float Chunks.Audio.SoundEmitter.Pitch |
|
getset |
Pitch scale modifier, default is 1.
The sound effect currently attached to this emitter.
| float Chunks.Audio.SoundEmitter.SpacialBlend |
|
getset |
| float Chunks.Audio.SoundEmitter.Volume |
|
getset |
Volume scale modifier, default is 1.
The documentation for this class was generated from the following file: