SFX Previewer (Audio Events List)
Editor window for browsing and previewing sound effects (SFX events). Provides a folder-based hierarchical view of all registered audio events, text search, and one-click playback.
Editor window for browsing and previewing sound effects (SFX events). Provides a folder-based hierarchical view of all registered audio events, text search, and one-click playback.
Public Functions
| Function | Description |
|---|---|
M.onUpdate(dtReal, dtSim, dtRaw) | Per-frame update rendering the SFX previewer window |
M.onEditorToolWindowShow(windowName) | Refreshes event list when window is shown |
M.onEditorToolWindowHide(windowName) | Saves window state on hide |
M.onWindowMenuItem() | Shows the tool window |
M.onEditorInitialized() | Registers window and menu item under "Audio" group |
Key Features
- Folder Navigation - Events organized in a tree by
>delimiters (e.g.event:>Ambient>Water>River) - Search - Fuzzy text search across all event names
- One-Click Play - Left-click any event to play it at the player vehicle position
- Stop Button - Stop currently playing sound
- Right-Click Copy - Copy event name to clipboard
- Breadcrumb Path - Shows current folder path
Usage Example
-- Play an audio event programmatically (same pattern the previewer uses)
local newSFX = Engine.Audio.playOnce('AudioGui', 'event:>Ambient>Water>River', {
position = getPlayerVehicle(0):getPosition()
})Dependencies
M.dependencies = {"editor_main"}
See Also
- audioRibbonEditor - Spatial audio ribbon placement tool
Asset Management Tool
Comprehensive asset management tool for duplicate detection, migration (copy + create links), link validation/repair, file delinking/relinking, and asset naming convention enforcement.
Audio Ribbon Editor
Editor tool for placing dynamic audio emitter ribbons in the 3D world. Ribbons define spatial zones where audio events play directionally (quad emitters) or as single ambient sources. Supports surface