Navigation
API > API/Plugins > API/Plugins/MetasoundEditor
| Name | UMetaSoundRandomizerViewModel |
| Type | class |
| Header File | /Engine/Plugins/Runtime/Metasound/Source/MetasoundEditor/Public/TemplateViewModels/RandomizerConfigurationViewModel.h |
| Include Path | #include "TemplateViewModels/RandomizerConfigurationViewModel.h" |
Syntax
UCLASS (MinimalAPI, DisplayName="MetaSound Randomizer ViewModel")
class UMetaSoundRandomizerViewModel : public UMetaSoundTemplateViewModelBase
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UMVVMViewModelBase → UMetaSoundTemplateViewModelBase → UMetaSoundRandomizerViewModel
Implements Interfaces
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AllowPrivateAccess | TemplateViewModels/RandomizerConfigurationViewModel.h |
|
||
| bIsOneShot | bool | If randomizer is one shot (looping if false). | TemplateViewModels/RandomizerConfigurationViewModel.h |
|
| DisallowedClasses | TemplateViewModels/RandomizerConfigurationViewModel.h |
|
||
| Pitch | FVector2f | Sound's pitch range in semitones. | TemplateViewModels/RandomizerConfigurationViewModel.h |
|
| PropertyChangedHandle | FDelegateHandle | TemplateViewModels/RandomizerConfigurationViewModel.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool GetIsOneShot() |
TemplateViewModels/RandomizerConfigurationViewModel.h | ||
FVector2f GetPitch() |
TemplateViewModels/RandomizerConfigurationViewModel.h | ||
float GetPitchMax() |
TemplateViewModels/RandomizerConfigurationViewModel.h |
|
|
float GetPitchMin() |
TemplateViewModels/RandomizerConfigurationViewModel.h |
|
|
const TArray< TObjectPtr< USoundWave > > & GetSounds() |
TemplateViewModels/RandomizerConfigurationViewModel.h | ||
void SetIsOneShot
(
bool bInIsOneShot |
TemplateViewModels/RandomizerConfigurationViewModel.h | ||
void SetNumSounds
(
int32 NumSounds |
TemplateViewModels/RandomizerConfigurationViewModel.h |
|
|
void SetPitch
(
const FVector2f& InPitch |
TemplateViewModels/RandomizerConfigurationViewModel.h | ||
void SetPitchMax
(
float PitchMax |
TemplateViewModels/RandomizerConfigurationViewModel.h |
|
|
void SetPitchMin
(
float PitchMin |
TemplateViewModels/RandomizerConfigurationViewModel.h |
|
|
void SetSounds
(
TArray< TObjectPtr< USoundWave > > InSounds |
TemplateViewModels/RandomizerConfigurationViewModel.h |
Public Virtual
Overridden from UMetaSoundTemplateViewModelBase
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool IsSupportedTemplate
(
const UScriptStruct& InStruct |
TemplateViewModels/RandomizerConfigurationViewModel.h | ||
virtual void Reload() |
Enables responding to the builder reloading or the model view requiring a full resynchronization of configuration properties to view (i.e. when user transactions are applied that require a full resync of the view such as undo, redo, etc.) | TemplateViewModels/RandomizerConfigurationViewModel.h |