Navigation
API > API/Plugins > API/Plugins/ModelViewViewModel > API/Plugins/ModelViewViewModel/UMVVMView
Description
Set the viewmodel of the specified name. The viewmodel needs to be settable and the type should match (child of the defined viewmodel). If the view is initialized, all bindings that uses that viewmodel will be re-executed with the new viewmodel instance.
| Name | SetViewModel |
| Type | function |
| Header File | /Engine/Plugins/Runtime/ModelViewViewModel/Source/ModelViewViewModel/Public/View/MVVMView.h |
| Include Path | #include "View/MVVMView.h" |
| Source | /Engine/Plugins/Runtime/ModelViewViewModel/Source/ModelViewViewModel/Private/View/MVVMView.cpp |
UFUNCTION (BlueprintCallable, Category="View")
bool SetViewModel
(
FName ViewModelName,
TScriptInterface < INotifyFieldValueChanged > ViewModel
)