The Math Utils package provides extensions and utilities for working with numbers in Unity projects including processing inputs, generating random numbers, and much more.
Use the Unity Package Manager to install the Math Utils package.
- Open the Package Manager in
Window > Package Manager
- Click the add (
+
) button in the status bar - Select
Add package from git URL
from the add menu - Enter the following Git URL in the text box and click Add:
https://github.com/zigurous/unity-math-utils.git
Import the package namespace in each script or file you want to use it. You may need to regenerate project files/assemblies first.
using Zigurous.Math;