Hi! I have a problem with clamping a float.
In UDK I had to just put Clamp(float, max, min) to get clamped value. I found this post:
but I’m not sure how to use it.
I included Fmath and put this:
FMath::Clamp(MyFloat, 0, 100);
but this is giving me a error:
error C2782: ‘T FMath::Clamp(const T,const T,const T)’ : template parameter ‘T’ is ambiguous
Can someone help me with this?