Tool for making navigation bezier splines with points, events and bindings to colliders
- Open file
manifest.json
inyour_repo/Packages
- Under
dependencies
add following line:
"trismegistus.splines" : "https://github.com/TrismegistusDevelopment/unity-splines.git#upm"
- Reopen your project in Unity
You should commit manifest.json
- Open file
manifest.json
inyour_repo/Packages
- Remove info about this package from
lock
section - Reopen your project
- Create empty GameObject in scene
- Add
NavigationManager
script on it - Create new
NavigationData
as suggested in component or directly in Project window and drag to corresponding field
- Waypoint coloring gradient - colorize path and waypoints using unity build-in Gradient class
- Closed spline - to make spline closed/open
- Stick to colliders - to raycast down from every waypoint and change their position.y if colliders found. Expensive
- Smoothing per unit - relative value for spline subdivision.
- Add - adding new waypoint in custom position. Hold
shift
to quickly add at the end - Waypoints
- Move - moving waypoint to another position in list
- Del - delete waypoint. Hold
shift
to quickly delete without prompt - Caption - to display in Scene View
- Basic - if false, caption won't be displayed in Scene View
- Mode -
None
Loop
Once
Ping Pong
- Manager - select
NavigationManager
with desired path - Speed
- Follow Rotation - should rotation of Follower changes according to
WaypointEntity.Velocity
(First derivative)