For Unity in C# written path tool
This tool helps you manage your points and save your points in the Unity Editor with Path Manager script.
- Visualising the paths in the Unity editor
- Using different algorithm settings
- Creating and manipulating paths
- Randomizing path spawn point
- Showing distances between linear paths
At the installation part, you can download this package using Unity's Package Manager.
- Firstly, click the
Code
button of this repository
- After that, copy the path of this package.
- Then, go to
Unity Editor/Window/Package Manager
path from your editor.
- At the package manager, click the
+
icon then select theAdd package from git URL...
section.
- After selecting that option, now you can paste the git path to here and press the
Add
button.
- Finally, you have successfully added this package to your project!
- At the getting started part, we will add
Path Manager Script
to the GameObject and figure it out that how the system works. Firstly, let's create empty GameObject and call itPath Manager
1.mp4
- After creating our
Path Manager
GameObject, we need to assign Path Manager script to it. - After assigning it to the Path Manager script, We'll see that on the Inspector panel some settings for this object.
- We can expand the
Editor Elements
part for seeing more options. At this part, we can give some sort of random values for the points and spawn them randomly at the Editor.
2.mp4
- Also we can delete the points that given any index below the path manager of it.
3.mp4
- Selecting algorithm whether Catmull Rom or Linear. If it's using Linear Algorithm option, then it can show distances between the points if it's selected at the Editor.
- You can add or delete any point in Runtime.
4.mp4
5.mp4
This code is released under MIT license. Modify, distribute, sell, fork, and use this as much as you like. Both for personal and commercial use. I hold no responsibility if anything goes wrong. If you use this, you don't need to refer to this repo, or give me any kind of credit but it would be appreciated. At least a ⭐ would be nice.
Pull Requests are welcome. But, note that by creating a pull request you are giving me permission to merge your code and release it under the MIT license mentioned above.
In case of any issue you can submit an issue for this repository. Also don't forget to use tickets for your issue. So that way I can notice the issue easier.
You can support me from github sponsors or buy me a coffee ☕