Navigation
API > API/Plugins > API/Plugins/TechAudioToolsMetaSound
The base class for MetaSound viewmodels. Used for binding metadata and member inputs/outputs of a MetaSound to widgets in UMG. Can be initialized using a MetaSound Builder or a MetaSound asset. Creates member viewmodels for each input and output in the MetaSound upon initialization.
| Name | UMetaSoundViewModel |
| Type | class |
| Header File | /Engine/Plugins/Experimental/TechAudioTools/Source/TechAudioToolsMetaSound/Public/ViewModels/MetaSoundViewModel.h |
| Include Path | #include "ViewModels/MetaSoundViewModel.h" |
Syntax
UCLASS (MinimalAPI, DisplayName="MetaSound Viewmodel")
class UMetaSoundViewModel : public UMVVMViewModelBase
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UMVVMViewModelBase → UMetaSoundViewModel
Implements Interfaces
Derived Classes
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UMetaSoundInputViewModel * FindInputViewModel
(
const FName InputViewModelName |
Returns the input viewmodel with the given name if it exists, else returns nullptr. | ViewModels/MetaSoundViewModel.h |
|
UMetaSoundOutputViewModel * FindOutputViewModel
(
const FName OutputViewModelName |
Returns the output viewmodel with the given name if it exists, else returns nullptr. | ViewModels/MetaSoundViewModel.h |
|
FString GetBuilderName() |
Returns the object name of the initialized builder. | ViewModels/MetaSoundViewModel.h |
|
virtual TArray< UMetaSoundInputViewModel * > GetInputViewModels() |
Contains MetaSound Input Viewmodels for each input of the initialized MetaSound. | ViewModels/MetaSoundViewModel.h |
|
virtual TArray< UMetaSoundOutputViewModel * > GetOutputViewModels() |
Contains MetaSound Output Viewmodels for each output of the initialized MetaSound. | ViewModels/MetaSoundViewModel.h |
|
virtual void Initialize
(
UMetaSoundBuilderBase* InBuilder |
Initializes the viewmodel using the given builder. | ViewModels/MetaSoundViewModel.h |
|
virtual void InitializeMetaSound
(
const TScriptInterface< IMetaSoundDocumentInterface > InMetaSound |
Initializes the viewmodel using the given MetaSound asset. | ViewModels/MetaSoundViewModel.h |
|
bool IsInitialized() |
ViewModels/MetaSoundViewModel.h | ||
bool IsPreset() |
ViewModels/MetaSoundViewModel.h | ||
| ViewModels/MetaSoundViewModel.h | |||
| ViewModels/MetaSoundViewModel.h | |||
void OnInputDefaultChanged
(
FName VertexName, |
ViewModels/MetaSoundViewModel.h | ||
void OnInputInheritsDefaultChanged
(
FName VertexName, |
ViewModels/MetaSoundViewModel.h | ||
void OnInputIsConstructorPinChanged
(
FName VertexName, |
ViewModels/MetaSoundViewModel.h | ||
| ViewModels/MetaSoundViewModel.h | |||
| ViewModels/MetaSoundViewModel.h | |||
| ViewModels/MetaSoundViewModel.h | |||
| ViewModels/MetaSoundViewModel.h | |||
void OnOutputIsConstructorPinChanged
(
FName VertexName, |
ViewModels/MetaSoundViewModel.h | ||
| ViewModels/MetaSoundViewModel.h | |||
| ViewModels/MetaSoundViewModel.h | |||
virtual void Reset() |
Resets this MetaSoundViewModel instance to an uninitialized state. | ViewModels/MetaSoundViewModel.h |
|
| ViewModels/MetaSoundViewModel.h | |||
void SetInputDefaultLiteral
(
const FName& InputName, |
ViewModels/MetaSoundViewModel.h | ||
void SetInputIsConstructorPin
(
const FName& InputName, |
ViewModels/MetaSoundViewModel.h | ||
| ViewModels/MetaSoundViewModel.h | |||
void SetInputOverridesDefault
(
const FName& InputName, |
ViewModels/MetaSoundViewModel.h | ||
void SetIsInitialized
(
const bool bInIsInitialized |
ViewModels/MetaSoundViewModel.h | ||
| ViewModels/MetaSoundViewModel.h | |||
void SetOutputIsConstructorPin
(
const FName& OutputName, |
ViewModels/MetaSoundViewModel.h | ||
| ViewModels/MetaSoundViewModel.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual UMetaSoundInputViewModel * CreateInputViewModel
(
const FMetasoundFrontendClassInput& InInput |
ViewModels/MetaSoundViewModel.h | ||
void CreateMemberViewModels() |
ViewModels/MetaSoundViewModel.h | ||
virtual UMetaSoundOutputViewModel * CreateOutputViewModel
(
const FMetasoundFrontendClassOutput& InOutput |
ViewModels/MetaSoundViewModel.h | ||
virtual TSubclassOf< UMetaSoundInputViewModel > GetInputViewModelClass() |
ViewModels/MetaSoundViewModel.h | ||
virtual TSubclassOf< UMetaSoundOutputViewModel > GetOutputViewModelClass() |
ViewModels/MetaSoundViewModel.h |