Blueprint Variable ClampMin/Max

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 :slight_smile:

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 :slight_smile:

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.