Skip to content

TLabAltoh/TLab-Spline

Repository files navigation

TLab-Spline

Spline tool for unity.
I made it based on this tutorial.

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)

overview.mp4

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

Assets