Error when importing mathematics
When I try to import mathematics it throws me an error saying that
'' error CS0234: The type or namespace name 'Mathematics' does not exist in the namespace 'Unity' (are you missing an assembly reference?)''. '
I tried, Using System.Mathematics, Using Unity.Mathematics I also tried by typing Math instead of Mathematics. Idk why this is throwing an error, I use Notepad++ for scripting.
[1]: /storage/temp/168619-screenshot-179.png
Answer by Hellium · Oct 03, 2020 at 05:29 PM
You need to install the Mathematics package in the package manager first (Window > Package manager).
Answer by streeetwalker · Oct 03, 2020 at 04:29 PM
Hi @famestar1236, using UnityEngine;
is all you need to access the Mathf
library - no need to explicitly import it. There isn't any 'mathematics' library, so I'm not sure what you are trying to do with that...
I stand corrected. It's probably not part of the standard install. I think you have to load it as a package first. see: https://forum.unity.com/threads/unity-mathematics-available-on-github.526100/
Your answer
Follow this Question
Related Questions
Need help putting integral function into C# 1 Answer
Instantiate and object around the perimeter of an area inside of an area. (C#) 1 Answer
How can I use Mathf.Clamp? 1 Answer
How can we roll the box not cube also need to work with physics 0 Answers
Vector2 ToString and vector components show totally different values 1 Answer