Question : how to round to nearest whole number unity
Answered by : creare
// Prints 10 Debug.Log(Mathf.Round(10.0f)); // Prints 10 Debug.Log(Mathf.Round(10.2f)); // Prints 11 Debug.Log(Mathf.Round(10.7f));
Source : | Last Update : Fri, 15 May 20
Answered by : creare
// Prints 10 Debug.Log(Mathf.Round(10.0f)); // Prints 10 Debug.Log(Mathf.Round(10.2f)); // Prints 11 Debug.Log(Mathf.Round(10.7f));
Source : | Last Update : Fri, 15 May 20