unreal.MVVMEventField

class unreal.MVVMEventField

Bases: StructBase

Generic structure to notify when an event occurs.

class UMyViewmodel : public UMVVMViewModelBase {

UPROPERTY(FieldNotify) FMVVMEventField SomeEvent;

void OnSomeEvent() {

UE_MVVM_BROADCAST_FIELD_VALUE_CHANGED(SomeEvent);

}

}; };

C++ Source:

  • Plugin: ModelViewViewModel

  • Module: ModelViewViewModel

  • File: MVVMEventField.h