Releases: mrdav30/FixedMathSharp-Unity
Release list
FixedMathSharp for Unity v7.0.0
This major release upgrades both Unity package variants to FixedMathSharp 7.0.0 and expands the Unity adapter layer with clearer, deterministic math, geometry, bounds, transform, frustum, and curve interop.
Highlights
- Added Unity camera and projection-matrix conversion to
FixedBoundFrustum, including caller-owned plane buffers for allocation-conscious workflows. - Added exact Unity
AnimationCurve→FixedCurveconversion, explicit sampled baking for unsupported curves, andFixedCurveexport back to Unity. - Expanded interop for
Vector4d, rays, planes, rectangles, bounds, matrices, andFixedTransformhierarchies. - Corrected matrix conversion between Unity's column-vector convention and FixedMathSharp's row-vector convention.
- Added atomic
Try*conversions and transform application that safely reject semantic loss or leave targets unchanged. - Improved Unity serialization coverage for non-zero
Fixed64,Vector2d,Vector3d, andVector4dvalues in ScriptableObjects and prefabs. - Published a searchable DocFX API reference and package changelog.
Breaking changes
- Vector and bounds projections now use explicit XY/XZ names such as
ToVector2dXY,ToVector3dXZ, andToFixedBoundAreaXZ. - Transform factory methods now use
CreateTransform*; removed 3×3 rotation-scale transform helpers are replaced byFixedTransformcomponents or strictFixed4x4application. - Fixed-to-Unity rays and matrix/transform application now reject non-unit directions, shear, perspective, singular matrices, and unrepresentable hierarchy conversions instead of silently normalizing or partially mutating state.
- Matrix conversions now transpose elements to preserve transform semantics. Audit code that depended on the previous direct-copy layout.
- FixedMathSharp 7.0.0 contains additional core breaking changes; review the migration guide before upgrading.
Upgrade resources
Full Changelog: v6.0.0...v7.0.0
FixedMathSharp-Unity v6.0.0
FixedMathSharp-Unity v5.0.5
Fixes
- removed stray
Samples~.meta
FixedMathSharp-Unity v5.0.4
Bug Fix
- Fixed
Samplesimport
FixedMathSharp-Unity v5.0.3
- Fixed sample scene import path for Unity 6.5
FixedMathSharp-Unity v5.0.2
Maintenance
- bumped FixedMathSharp to v5.0.2
FixedMathSharp-Unity v5.0.1
Fixed64 Unity Serialization Fix
Fixed Unity persistence for Fixed64-backed authoring fields.
Unity does not serialize readonly fields, so Fixed64 values backed by a readonly long could be edited in the inspector but reload as zero from assets or prefabs. Fixed64 now uses a Unity-compatible raw-value field layout while remaining engine-agnostic and wrapper-free.
Verified
Fixed64persists through ScriptableObject assets and prefabs.Vector2dandVector3dpersist correctly.- Nested structs containing
Fixed64persist correctly. List<T>elements containingFixed64andVector3dpersist correctly.- Existing fixed-point behavior and raw-value representation are unchanged.
FixedMathSharp-Unity v5.0.0
This release updates both Unity Package Manager variants to FixedMathSharp 5.0.0 and aligns the Unity adapters with the core v5 API and coordinate semantics.
Breaking Changes
- Updated the embedded FixedMathSharp binaries and XML docs to v5.0.0.
- Unity adapter code now follows the core v5 naming model, including PascalCase vector, quaternion, bounds, and matrix members such as
X/Y/Z,W, andM11-style matrix fields. - Matrix and transform conversions now use explicit semantic mapping between FixedMathSharp row-vector matrices and Unity transforms, including translation mapping between FixedMathSharp
M41/M42/M43and Unitym03/m13/m23. - Removed the old standalone
Matrix4x4.Extensions.csandTransform.Extensions.csorganization; those helpers now live with the fixed-type extension surfaces.
Highlights
- Added clearer Unity/FixedMathSharp coordinate semantics:
+Xright,+Yup, and+Zforward are preserved across vector, quaternion, matrix, and transform conversions. - Added explicit
XYandXZvector projection helpers for 2D/3D Unity interop. - Added Unity-to-fixed transform round-trip helpers, including local/world
Transform -> Fixed4x4 -> Transformworkflows. - Hardened inspector drawers for FixedMathSharp v5 serialization, including fixed number, vector, matrix, quaternion, and angle/rotation drawers.
- Renamed and refreshed bounds interop around
FixedBoundBoxandFixedBoundArea. - Added EditMode tests covering vector projections, coordinate conventions, matrix translation semantics, and transform round trips.
- Added package version sync tooling and refreshed developer guidance for maintaining the base package source and generated UPM variants.
FixedMathSharp-Unity v4.0.0
Breaking
- Upgraded to FixedMathSharp v4.0.0.
- Moved all
*Drawerclasses underEditor/Drawersto ease sync management
Internal
- Added tooling to support multiple packages that share the same base
FixedMathSharp-Unity v3.0.2
This update only impacts the "No-MemoryPack" variant
What's New
- changed
com.mrdav30.fixedmathsharp.nomemorypacktocom.mrdav30.fixedmathsharp.lean- updated
asmdefto use unique name to avoid confusion between standard package
- updated