How to CONVERT FLOAT TO INT in Unity

Опубликовано: 01 Октябрь 2024
на канале: GDT Solutions
1,703
27

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.

____________________________________________________________
PORTFOLIO: https://gamedevtraum.com/en/portfolio...
CONTACT:   / gamedevtraum  
LINKEDIN:   / gamedevtraum  
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
____________________________________________________________