SoundResourceCompilerclass

Sounds are compiled by the native sound compiler, but we get first look at the compile here. We read the lipsync visemes authored in the sound editor from the sound's .meta and inject them into the compiled resource as a custom block, then return false so the native compiler runs as usual - our block rides along into the final file. The engine reads it back out via `Sandbox.SoundFile.Visemes`.

objectResourceCompilerSoundResourceCompiler
Namespace
Editor
Assembly
Sandbox.Tools
Declaration
public class Editor.SoundResourceCompiler : Sandbox.Resources.ResourceCompiler

Constructors1

Showing 1 constructors

Methods1

Showing 1 methods

protected virtual System.Threading.Tasks.Task`1<bool> Compile()PROTECTEDVIRTUAL

Returns:Task<bool>

On this page