Answers for "unity cast float to int"

C#
6

unity cast float to int

//(int) casts float or int after it to an int
intVar = (int)var
Posted by: Guest on March-26-2020
4

unity cast int to float

//(float) casts float or int after it to an float
intVar = (float)var
Posted by: Guest on March-26-2020

C# Answers by Framework

Browse Popular Code Answers by Language