How to CONVERT FLOAT TO INT in Unity

preview_player
Показать описание
In this video we see four methods to convert float variables to integer in Unity.

First we see how to make a type casting, an operation that removes the decimal part from the float value.

The other three methods involve Math to convert float values to int. We see the Ceil function, the Floor function and the Round function.

____________________________________________________________
*DONATIONS*
-You can download one of me free assets for Unity from my ITCH page and leave a donation
-You can donate with the THANKS button on every video
____________________________________________________________
Рекомендации по теме