unreal.MetaSoundPresetWidgetInterface¶
- class unreal.MetaSoundPresetWidgetInterface(outer: Object | None = None, name: Name | str = 'None')¶
Bases:
AudioPanelWidgetInterfaceMeta Sound Preset Widget Interface
C++ Source:
Plugin: Metasound
Module: MetasoundEditor
File: MetasoundPresetWidgetInterface.h
- get_supported_meta_sounds() -> (support_all_presets=bool, excluded_meta_sounds=Array[MetaSoundDocumentInterface], included_meta_sounds=Array[MetaSoundDocumentInterface])¶
The MetaSounds whose presets are supported by this widget. If Support All Presets is true, this widget is supported by all presets except those in the Excluded array. MetaSounds in the include/exclude arrays can be MetaSound presets or non presets. If a MetaSound is not a preset, then presets of that MetaSound will be supported/excluded by this widget.
- Returns:
support_all_presets (bool):
excluded_meta_sounds (Array[MetaSoundDocumentInterface]):
included_meta_sounds (Array[MetaSoundDocumentInterface]):
- Return type:
tuple
- on_audition_state_changed(audio_component, is_auditioning) None¶
Called when the MetaSound starts and stops auditioning. Provides a reference to the audio component when auditioning starts, and returns nullptr when auditioning stops.
- Parameters:
audio_component (AudioComponent)
is_auditioning (bool)
- on_constructed(builder) None¶
Called when the preset widget is constructed, giving the builder of the associated MetaSound preset
- Parameters:
builder (MetaSoundBuilderBase)