I know UDK had a way to clamp a value between a min/max but i havent found a way to do that with UPROPERTY
Any help would be more than welcome
I know UDK had a way to clamp a value between a min/max but i havent found a way to do that with UPROPERTY
Any help would be more than welcome
in the metadata section of the UPROPERTY macro you can specify a UIMin and UIMax:
UPROPERTY(β¦, meta=(UIMin = β0.0β, UIMax = β10.0β))
float ClampedFloatValue;
Thanks Marc,
itβs working perfectly
I will have to figure where all the stuff that can be done with metadata is hidden
Probably the best bet for the time being is to simply search the code for meta= . The metadata is still a bit ad-hoc and it is definitely on the list to harden it up and get it nicely documented.