- Home /
Question by
IMTRIGGERHAPPY9 · Jul 29, 2011 at 05:58 AM ·
mathsquare root
square root?
hey i am trying to use the sqrt() class out of the .math library, but i dont know how to import the math library in unity's java
Comment
Best Answer
Answer by Dreamora · Jul 29, 2011 at 06:12 AM
You don't need to. You can just use Mathf.Sqrt() Its part of the UnityEngine namespace that you imported anyway.
Otherwise: The counterpart to C#s "using" in UnityScript is "import" for example: import System.Collections;
thanks i didn't know you didn't have to import it!
Your answer
