I want to use this packages: GitHub - Unity-Technologies/2d-extras: Fun 2D Stuff that we'd like to share!
but it written “Git must be installed and added to your path.”
“How to use git?”
Good starting point is from downloading, installing and running it first.
Have you clicked that Git link?
I have installing git and i don’t know the mean “added to your path”
After you have installed git, you need to add its install location to the PATH variable of the environment variables of your users computer (or for all users). You can find tutorials online by searching for “how to add git to path variable”.
The reason why you need this, is because the 2D-Extras package wants to be downloaded via the Unity Package Manager, which in this case, uses GitHub to store the source code and hence git to download the data. The Package Manager needs to know how to use git on your computer because it is not bundles with Unity. Therefore, you need to somehow tell Unity where to look for the git executable. This is done by storing the path to git executable in a system-wide store on your computer called the “PATH” variable, which usually contains multiple entries for different applications.
I found a tutorial git with environment variable, is that PATH variable?
https://www.youtube.com/watch?v=_tN0T7jYn0A
Yes, sounds good. The PATH is one of the environmnent variables.
Oh thank you. It’s definitely works!