Skip to content

v0.5.4

Choose a tag to compare

@github-actions github-actions released this 08 Oct 04:33
· 12 commits to main since this release
v0.5.4
27ff555

Fixes type tree reads of one-byte char vectors, HDR ASTC void-extent rounding and the names of Cubism expression blend modes. Recommended for everyone on 0.5.x.

Fixed

  • Read a type tree char at its declared byte size. Unity's engine trees declare char as one byte, so vector<char> fields such as Font.m_FontData, AudioMixer name buffers and BlobObject.m_BlobData were read as two bytes per element and failed with "failed to fill whole buffer". Caller-supplied schemas and two-byte char keep the two-byte read, and any other size is refused as invalid data. (#28) by @nichinichisou0609
  • Round HDR ASTC void-extent blocks to the nearest level, as astcenc does, instead of truncating. LDR output is unchanged. (#29) by @nichinichisou0609
  • Report Cubism expression blend modes under the right name. Ordinals 0, 1 and 2 now map to Overwrite, Add and Multiply as in the Cubism SDK for Unity; before, every mode was misnamed. The Python CubismExpressionParameter.blend strings change for the same input, while exp3.json bytes stay the same. (#30) by @nichinichisou0609

Artifacts

  • Python: unity-rs 0.5.4 on PyPI (cp39-abi3 wheels for six platforms and an sdist).
  • Rust: unity-rs-core and unity-rs-cli 0.5.4 on crates.io.
  • CLI archives (unity-rs-cli-0.5.4-<platform>) and Node.js addon packages (unity-rs-node-0.5.4-<platform>.tgz) for Linux, macOS and Windows on x64 and arm64: attached below, with checksums in SHA256SUMS-v0.5.4.txt.
Maintenance
  • Bump brotli to 9.0.0. (#17)
  • Bump napi to 3.14.0, napi-derive to 3.6.10, napi-build to 2.6.0 and pyo3 to 0.29.3. (#24)
  • Bump @napi-rs/cli to 3.10.6, which adds __napiBindingTarget to the generated Node loader, and @types/node to 26.6.4. (#23)
  • Bump taiki-e/install-action to 2.87.23. (#25)
  • Bump the workspace version to 0.5.4. (#32)

Full Changelog: v0.5.3...v0.5.4