Navigation
API > API/Plugins > API/Plugins/ModelViewViewModel > API/Plugins/ModelViewViewModel/UMVVMView
Description
Set the first viewmodel matching the exact specified type. If none is found, set the first viewmodel matching a child of the specified type The viewmodel needs to be settable and it should have a valid name. If the view is initialized, all bindings that uses that viewmodel will be re-executed with the new viewmodel instance.
| Name | SetViewModelByClass |
| 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 SetViewModelByClass
(
TScriptInterface < INotifyFieldValueChanged > NewValue
)