UPROPERTY less than or equal to another UPROPERTY in Editor

Hi!
How could I do something like this?


UPROPERTY(EditAnywhere)
int32 MaxGold;

UPROPERTY(EditAnywhere)
int32 Gold;

If **Gold **( or MaxGold ) value is changed it is validated, so Gold is always less than or equal to MaxGold in Editor?

Thank you!

Override in your UClass the PostEditProperty method, search engine source for examples :

Thank you very much [USER=“434”]BrUnO XaVIeR[/USER] !!