set_viewmodel_field
Instantiates a UMVVM view model class on a UUserWidget and sets it via SetViewModelByClass to enable MVVM data binding.
Instructions
Instantiate a UMVVMViewModelBase on a UUserWidget instance and set it via UMVVMBlueprintLibrary::SetViewModelByClass.
Returns: { widget_instance_name, view_model_class, context_name, set, instance_class }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| context_name | Yes | FName of the target context on the widget | |
| view_model_class | Yes | VM class: asset path or /Script/<Module>.<ClassName> | |
| widget_instance_name | Yes | Label (Actor label or asset path) used to find an in-world UUserWidget |