Releases: jeffcampbellmakesgames/unity-curves
Releases · jeffcampbellmakesgames/unity-curves
v1.1.1
Summary
This release exposes several internal classes as public and adds a new user preference to support better performance in the Unity Editor.
Changes
- [API] Bezier3DSplineInspector, Bezier3DSplineDataInspector, and SceneGUITools are now public.
- [SDK] A new preference has been added for view distance which controls the distance away from the SceneView camera that orientation lines are drawn at. For very long splines drawing all of the orientation handles can impact performance and so this view distance preference can constrain the range at which these are drawn.
v1.0.0
Summary
This initial release aims to significantly refactor and rewrite an existing curves library found here in order to provide a simpler API additional features and bug fixes, and a stronger foundation for future updates.
Changes
- [CLEANUP] Refactored file layout ordering and extracted nested types into their own files.
- [CLEANUP] Refactored namespaces and added AssemblyDefinitions for runtime and editor code
- [CLEANUP] Refactored Bezier3DSpline functionality into a new ScriptableObject-derived class Bezier3DSplineData and modified Bezier3DSpline to use that internally with modifications for logic requiring transformation of position, rotation, and direction in its Transform's local space.
- [CLEANUP] Refactored inspector code into separate tools classes for better readability and reuse between two spline types
- [CLEANUP] Refactored property, field, and event names for proper casing
- [CLEANUP] Refactored multiple variable assignment and declaration into separate instances.
- [CLEANUP] Replaced custom move tool with plain Unity version to simplify the code base and avoid movement bugs in custom code.
- [API] Added methods for spline types to get distance based on curve or knot index.
- [API] Migrated mirror handles, vizualizing rotation to user editor preferences rather than static fields.
- [API] Added normalized methods for position, rotation, and spline length where the parameter value is between 0-1 where the spline distance used is a percentage of the total length of the spline.
- [API] Extracted methods and properties for Bezier3DSplineData and Bezier3DSpline into IReadOnly3DSplineData (a read-only version of a spline) and IBezier3DSplineData (all methods and properties).
- [API] Simplified interface for Bezier3DSplineData and Bezier3DSpline by reducing access to local methods for internal use only. Most of the time users will only want/require the non-local methods that always return the proper orientation, position, and direction in world space rather than local to the spline space.
- [SDK] Added hotkey for focusing last active SceneView camera on selected knot
- [SDK] Modified Handle position tool to only show when in Move mode.
- [SDK] Modified Scene UI to use icons, larger button styles for mirror and rotation visualization preferences
- [SDK] Moved SplineTrain into library folder, renamed as SplineWalker and refactored to properly implement loop types for moving at a constant speed or over a fixed duration.
- [SDK] Added editor icons for Bezier3DSpline, Bezier3DSplineData, and SplineWalker. For Monobehaviour-derived components these will appear as Gizmos in the Scene View.
- [SDK] Added ability to reset Bezier3DSplineData ScriptableObject to starting values.
- [BUG] Fixed bugs for editor logic that did not use Undo.RecordObject functionality.
- [BUG] Fixed bugs for Up vector not being calculated correctly with earlier/later rotations where the start and end Knots are at the beginning and end of the spline.
- [BUG] Fixed bugs where curve was not recalculated/recached when IsClosed was toggled. This largedly affected Handles at the beginning and end of the curve that would lose either the start or end handle when IsClosed was changed from true to false.
- [DOC] Added both the new and original source license to repo root and library folders.
- [DOC] Created documentation and images for readme and a usage guide.
- [DOC] Added documentation XML blocks to most classes, methods, etc...