EasyCurvedLine Versions Save

Easy rendering and editing of curved lines in Unity.

v1.1

5 years ago

New features

Context menus are added to Unity Editor to ease the creation of curved lines.

  • In Game Object menu (and in the Hierarchy view context menu) a new Curved line menu item is present in Effects sub-menu.
  • In Curved Line Renderer component there are new menu items for adding new line control points and renaming them according to their position.
  • In Curved Line Point component there are menu items for adding new line control points.

Fixed bugs

  • CurvedLineRenderer was changed to allow nested curved lines.

Documentation

  • Added more documentation to the source code.

v1.0

5 years ago

Features

  • scripts:
    • LineSmoother
      • main utility script for smoothing out positions
      • static function so it can be accessed without being attached to a gameobject
      • feed it an array of Vector3 and a segment size and you will get back a smoothed out array!
      • segment size is world space and so the number of line segments in between points adjusts based on distance between points
    • CurvedLineRenderer
      • example use case for smoothed out positions
      • add new points and it will automatically update to include the new position!
      • example scene is provided with a regular curved line and a curved line with physics applied to each point
    • CurvedLinePoint
      • draws gizmo and sends back to CurvedLineRenderer to update line when the point is moved
  • textures and materials:
    • normal maps to make curved lines look like their were solid
    • sample ready-to-use materials for lines (unlit and wires or pipes)