All notable changes to this package will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- Input listeners are now added via OnEnable, and removed via OnDisable instead of only adding them in Awake
- selectionAreaBounds event in AreaSelection that is triggered whenever the selection area is (re)drawn while in the process of selecting an area
- Added SetCurrentInputPointsWithoutNotify() method to override current list of positions without invoking edit or create events
- Made some fields and methods extendable, added property to set world plane.
- Fixed problem where dragging the end point of an open polygon (line) would also move the first point to the end position.
- When performing the closing action with less than the minimum required points, a point is added at the cursor position to attempt to create a valid shape.
- Used SetDrawMode when finishing a polygon to update pointer visibility
- Fixed execution order issue where another system may disable the input action map of this system. By default the input action map will be enabled and no longer disabled to avoid interfering with other systems that may use the same input action map.
- Auto draw is now disabled in edit mode
- Added a mode selection to allow only creating or only editing polygons. Doing both at once is still possible with the mode CreateAndEdit
- New method for returning last hovered GameObject by InputSystem module
- New method for returning the default UI/Click InputAction of the InputSystem module
- UI layer is now blocking the start of an area selection by default
- Separated Package from Netherlands 3D. Still has dependency on Netherlands 3D (core and Poly2Mesh) this will be removed in the next update
- Removed dependency on Netherlands3D.Core. The extension methods used are added in a temporary script that should be removed when possible to avoid double code.
- Removed depandency on Poly2Mesh embedded package in Netherlands3D, replaced it with a depencancy on the OpenUPM version of this package.
- Unity functions are now overridable
- Added overridable function to calculate position to be added.
- Fixed incorrect function calls with CloseLoop and FinishPolygon.
- Renamed some variables for clarity
- MinPointDistance is now calculated based on handle size for spherical handles