Just wanted to add that there’s a Math function called truncate, it’s not part of the UnityEngine
namespace, it can be found in the System.Math
namespace.
Here’s also a nice reading on how to use all of this in different scenarios.
Just wanted to add that there’s a Math function called truncate, it’s not part of the UnityEngine
namespace, it can be found in the System.Math
namespace.
Here’s also a nice reading on how to use all of this in different scenarios.