Class SfxAsset
Stores a sound effect
Functions
| SfxAsset.new (path) | Creates a new sound effect. |
Methods
| SfxAsset:play () | Plays a sound effect. |
| SfxAsset:set_as (id) | Sets a builtin sound effect. |
Functions
Methods- SfxAsset.new (path)
-
Creates a new sound effect.
Parameters:
- path string The path to the sound to load