Skip to content

unity-rs 0.5.2

Latest

Choose a tag to compare

@MejiroRina MejiroRina released this 26 Sep 16:03
v0.5.2

API

  • Caller-selected Shader read limits. StudioObject::read_shader_text_with_limits(ShaderReadLimits) lets Rust callers choose every Shader read budget instead of only the output cap. read_shader_text(maximum_output_bytes) is unchanged and still uses ShaderReadLimits::default(); no default limit was relaxed. A real Unity 6000.3 URP shader totals 4,010,378 array elements, above the default 4,000,000, so exporters that expect such shaders can now opt into a larger total explicitly. Exceeding a supplied budget still returns the same limit error.
  • Python and Node keep their existing read_shader(maximum_bytes) / readShader(maximumBytes) surface; the new method is Rust-only.

Compatibility

  • No change to parsing, output bytes or error families for existing calls.
  • Minimum Rust version remains 1.88.