Let’s say I have a UCLASS with a UPROPERTY and a native property:
UCLASS()
class UMyObject : public UObject {
GENERATED_BODY()
public:
UPROPERTY(EditDefaultsOnly)
int32 A = 42;
int32 B = 44;
};
And I want B to be set to A + 2 after A is modified in a blueprint subclass of UMyObject
.
Is there a virtual function in UObject
that I can override and put the statement:
B = A + 2;
into that will achieve this?