The MVVM Documentation explains that it is possible to nest a Viewmodel other Viewmodel.
https://docs.unrealengine.com/5.1/en-US/umg-viewmodel/
But it doesn’t work.
Attach the FieldNotify property to the property of the inner viewmodel, an error message is displayed saying that the property does not support the base viewmodel.
class UMyViewModelBase : public UMVVMViewModelBase
{
GENERATED_BODY()
public:
UPROPERTY(EditAnywhere, BlueprintReadOnly, FieldNotify)
TObjectPtr<class UMyViewModelInner> VM_Inner;
}
class UMyViewModelInner : public UMVVMViewModelBase
{
GENERATED_BODY()
public:
UPROPERTY(EditAnywhere, BlueprintReadOnly, FieldNotify)
FText InnerText;
}
When I try bind to View Binding Panel :
The error log plugin code :
- Another issue : Used ‘{0}’ twice in Log that something wrong.
How to use Viewmodel inside other Viewmodel?