https://github.com/tlabaltoh/tlab-spline
Spline tool for Unity
https://github.com/tlabaltoh/tlab-spline
game-development spline spline-curve unity unity-package unity-plugin unity3d upm upm-package
Last synced: 7 months ago
JSON representation
Spline tool for Unity
- Host: GitHub
- URL: https://github.com/tlabaltoh/tlab-spline
- Owner: TLabAltoh
- Created: 2023-07-17T13:43:08.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-12-16T11:20:42.000Z (10 months ago)
- Last Synced: 2025-01-28T09:48:35.848Z (8 months ago)
- Topics: game-development, spline, spline-curve, unity, unity-package, unity-plugin, unity3d, upm, upm-package
- Language: C#
- Homepage:
- Size: 11.8 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TLab-Spline
Spline tool for unity.
[I made it based on this tutorial.](https://www.youtube.com/playlist?list=PLFt_AvWsXl0d8aDaovNztYf6iTChHzrHP)## Feature
- Instantiate Mesh / GameObject and place it along the spline
- Edit terrain height along to spline curve
- Apply GameObject's Transform to Curve
- Angle offset for each anchor point
- Specify the effective range of the curve (-1 ~ 1)
- Multi range for one curve
- Curve Primitive with custom divisions (Line, Circle, Polygon)
components
## Development Environment
- Unity: 2022.3.11f1 (URP)### Install
### Git
Clone this repository with the following command```
git clone https://github.com/TLabAltoh/TLab-Spline.git
```or
```
git submodule add https://github.com/TLabAltoh/TLab-Spline.git
```### Unity Package Manager
add package from git URL ...```
https://github.com/TLabAltoh/TLab-Spline.git#upm
```### How to Edit Spline
| Key | Action |
| --- | --- |
| A | Add segment |
| D | Deletion of segment |
| S | Insert segment |### TODO
- support Undo for editor gui's button action.### Reference
#### Source Code
- [youtube](https://www.youtube.com/playlist?list=PLFt_AvWsXl0d8aDaovNztYf6iTChHzrHP)
- [Path Creator](https://github.com/SebLague/Path-Creator/tree/master)
#### Assets
- [sample's texture](https://www.freepik.com/free-photo/lines-traffic-paved-roads-background_3738059.html)