Answers for "unity var not minus"

C#
0

unity var not minus

void OnValidate()
{
    theValue = Mathf.Clamp(theValue, 0, float.MaxValue); // or int.MaxValue, if you need to use an int but can't use uint.
}
Posted by: Guest on July-10-2020

C# Answers by Framework

Browse Popular Code Answers by Language