set_modulation_generator_settings
Writes and saves class-specific settings for a USoundModulationGenerator asset, such as LFO frequency or envelope attack time, while ignoring parameters that do not match the generator class.
Instructions
Writes the settings that match the class of a USoundModulationGenerator asset (LFO, ADEnvelope or EnvelopeFollower) and saves it; params of another class are ignored, other generator classes are refused, and the LFO shape cannot be set here. Returns generator_path, generator_class, settings as stored, updated, saved.
Returns: { generator_path, generator_class, settings: {...}, updated, saved }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gain | No | EnvelopeFollower only: input gain applied before envelope detection (optional float) | |
| phase | No | LFO only: starting phase in degrees (optional float) | |
| offset | No | LFO only: output offset added to the waveform (optional float) | |
| amplitude | No | LFO only: output amplitude/gain multiplier (optional float) | |
| frequency | No | LFO only: oscillation frequency in Hz (optional float) | |
| decay_time | No | ADEnvelope only: decay interpolation time in seconds (optional float) | |
| attack_time | No | ADEnvelope/EnvelopeFollower: attack interpolation time in seconds (optional float) | |
| release_time | No | EnvelopeFollower only: release interpolation time in seconds (optional float) | |
| audio_bus_path | No | EnvelopeFollower only: asset path to the UAudioBus the follower listens to (optional string) | |
| generator_path | Yes | Asset path to the USoundModulationGenerator |