v2.16.0
2.16.0 (2024-04-17)
Features
- Cast: add raycast hit validity rule for points cast (170a241)
The PointsCast now has a RaycastHitValidity rule that will allow any data within the cast RaycastHit to be used within a rule for any custom.
- Cast: make drag curve offset a vector3 (f90f1e8)
The Drag Curve Offset is now a Vector3 allowing the curve offset to be applied to any axis rather than just the back axis.
To replicate the orignal setting, just change the Z axis to a negative value and this will replicate the same as the Vector3.back * offset.
- Data: add script define to disable collapsible drawer (36f978b)
The custom collapisble drawer editor modification can now be disabled by setting a scripting define symbol of
ZINNIA_IGNORE_CUSTOM_COLLAPSIBLE_DRAWER
. - README.md: add section describing custom script define symbols (3238142)
The various script define symbols that are added by Zinnia are now documented to make it easier to know when to use them.
- Tracking: apply distance offset on position difference rotation (208570d)
The TransformPositionDifferenceRotation logic now has a source to offset maximum distance setting that will be activated if the
Apply Offset
is to true. This will ensure the rotation will only be applied when the source and offset are within the given distances and anything outside of those distances will be ignored.
Bug Fixes
- Data: prevent null exception in collapsible drawer in 2022.3 (2ce9cef)
Due to a change in Unity 2022.3, there is now no actual need to do the reflection for replacing a default drawer and in fact the attempt to get
DrawerKeySet
will return a null, thus causing the existing error.The fix is to simply do a null check to prevent the error and the reflection will simply be ignored on versions of Unity of 2022.3 and above.