Version: Unity 6.3 Beta (6000.3)
LanguageEnglish
  • C#

IGeneratorDefinition.CreateRuntime

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public Audio.Generator CreateRuntime(Audio.ControlContext context, Nullable<DSPConfiguration> nestedConfiguration, Audio.ControlContext.ProcessorCreationParameters creationParameters);

Parameters

Parameter Description
context The context associated with this Generator.
nestedConfiguration If not null, the Generator shall be created as a nested processor with the given configuration to be used from within another processor.
creationParameters Additional creation parameters.

Returns

Generator A runtime instance you control the lifetime of. You can use this to directly generate sound with a ProcessingContext or control it with a ControlContext.

Description

Ask this interface to instantiate a runtime Generator instance like a factory.

The implementer must return a valid Generator instance or throw an exception.