- Home /
This question was
closed Jan 28, 2018 at 07:44 AM by
betapowers for the following reason:
Fixed, added (int) before matf
Question by
betapowers · Jan 28, 2018 at 07:27 AM ·
mathf
Need help with Mathf.Sqrt
I am somewhat new to using mathf and what I am trying to do is modify an integer variable as such:
void Update () {
AmountOfTiles = transform.childCount;
TileRow = Mathf.Sqrt(AmountOfTiles);
}
I have looked at the documentation area of unity but I am somewhat confused right now.
Comment