how to convert int to floats in unity code example Example: unity cast int to float //(float) casts float or int after it to an float intVar = (float)var