Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GeneratorInstance.Result

The result returned from a GeneratorInstance.IRealtime.Process call.
Read time 1 minuteLast updated 6 days ago

Definition

public ref struct GeneratorInstance.Result

Remarks

This primarily contains the amount of frames actually written into the passed-in ChannelBuffer, and the status of the generator (eg. whether it has finished or not).
Additional Resources: RealtimeContext.Process

Properties

Property

Description

processedFramesNumber of frames processed by the GeneratorInstance in RealtimeContext.Process.

Methods

Method

Description

didLoadFailIf this is true, the backing audio clip failed to load and the generator cannot produce audio.
isFinishedIf this is true, the GeneratorInstance has finished generating audio and won't produce any more frames.
isLoadingIf this is true, the GeneratorInstance is still loading its backing audio clip asynchronously.

Static Methods

Method

Description

FinishedCreates a new GeneratorInstance.Result that indicates the generator has finished from this point on, having delivered _processedFrames additionally.

Operators

Operator

Description

ResultCreates a new GeneratorInstance.Result from a number of frames processed.