Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Process(GeneratorInstance, ChannelBuffer, Arguments)

Manually process this particular GeneratorInstance.
Read time 1 minuteLast updated 6 days ago

Definition

public readonly GeneratorInstance.Result Process(GeneratorInstance generatorInstance, ChannelBuffer buffer, GeneratorInstance.Arguments args)

Parameters

generatorInstance

The GeneratorInstance to process.

The buffer the GeneratorInstance will put its processing result into.

Additional arguments passed along, which can be default-initialized.

Returns

Type

Description

ResultA GeneratorInstance.Result struct indicating amongst other things how many frames were actually written into
buffer
.

Remarks

In most use cases, you would not call this directly, but rather have the audio system call it for you. If you are yourself nesting a GeneratorInstance inside another ProcessorInstance, you would call this.
Additional Resources: Process