com.unity.cloud.draco 5.2.0

com.unity.cloud.draco

Source docs
Notes: processedReleased August 20, 2025

Browse versions

PreviousNext

Unity Compatibility

Minimum Unity: 2021.3 (46f1)

Features

  • Loading Draco data from [NativeArray\.ReadOnly](xref:Unity.Collections.NativeArray`1.ReadOnly). This makes it easier to load KTX data from existing, native memory directly without the need to create a copy in managed memory (e.g. by using [DownloadHandler.GetNativeData](xref:UnityEngine.Networking.DownloadHandler.GetNativeData) or [ConvertExistingDataToNativeArray](xref:Unity.Collections.LowLevel.Unsafe.NativeArrayUnsafeUtility.ConvertExistingDataToNativeArray\(System.Void*,System.Int32,Unity.Collections.Allocator\))).
  • - [DecodeMesh(MeshData, ReadOnly)](xref:Draco.DracoDecoder.DecodeMesh\(UnityEngine.Mesh.MeshData,Unity.Collections.NativeArray{System.Byte}.ReadOnly\))
  • - [DecodeMesh(MeshData, ReadOnly, DecodeSettings)](xref:Draco.DracoDecoder.DecodeMesh\(UnityEngine.Mesh.MeshData,Unity.Collections.NativeArray{System.Byte}.ReadOnly,Draco.DecodeSettings\))
  • - [DecodeMesh(MeshData, ReadOnly, DecodeSettings, Dictionary\)](xref:Draco.DracoDecoder.DecodeMesh\(UnityEngine.Mesh.MeshData,Unity.Collections.NativeArray{System.Byte}.ReadOnly,Draco.DecodeSettings,Dictionary{UnityEngine.Rendering.VertexAttribute,System.Int32}\))
  • - [DecodeMesh(ReadOnly)](xref:Draco.DracoDecoder.DecodeMesh\(Unity.Collections.NativeArray{System.Byte}.ReadOnly\))
  • - [DecodeMesh(ReadOnly, DecodeSettings)](xref:Draco.DracoDecoder.DecodeMesh\(Unity.Collections.NativeArray{System.Byte}.ReadOnly,Draco.DecodeSettings\))
  • - [DecodeMesh(ReadOnly, DecodeSettings, Dictionary\)](xref:Draco.DracoDecoder.DecodeMesh\(Unity.Collections.NativeArray{System.Byte}.ReadOnly,Draco.DecodeSettings,Dictionary{UnityEngine.Rendering.VertexAttribute,System.Int32}\))
  • Test project `DracoText`

📈 Improvements

  • Increased minimum required Unity 2021 xLTS (2021.3.46f1).
  • Changed source code repository structure to monorepo.
  • Updated Unity Draco binaries to version 3.3.0 (based on draco 1.5.7).
  • ### Deprecated
  • Decode methods that accept NativeSlice.
  • - [DecodeMesh(NativeSlice\)](xref:Draco.DracoDecoder.DecodeMesh\(Unity.Collections.NativeSlice{System.Byte}\))
  • - [DecodeMesh(NativeSlice\, DecodeSettings)](xref:Draco.DracoDecoder.DecodeMesh\(Unity.Collections.NativeSlice{System.Byte},Draco.DecodeSettings\))
  • - [DecodeMesh(NativeSlice\, DecodeSettings, Dictionary\)](xref:Draco.DracoDecoder.DecodeMesh\(Unity.Collections.NativeSlice{System.Byte},Draco.DecodeSettings,Dictionary{UnityEngine.Rendering.VertexAttribute,System.Int32}\))
  • - [DecodeMesh(MeshData, NativeSlice\)](xref:Draco.DracoDecoder.DecodeMesh\(UnityEngine.Mesh.MeshData,Unity.Collections.NativeSlice{System.Byte}\))
  • - [DecodeMesh(MeshData, NativeSlice\, DecodeSettings)](xref:Draco.DracoDecoder.DecodeMesh\(UnityEngine.Mesh.MeshData,Unity.Collections.NativeSlice{System.Byte},Draco.DecodeSettings\))
  • - [DecodeMesh(MeshData, NativeSlice\, DecodeSettings, Dictionary\)](xref:Draco.DracoDecoder.DecodeMesh\(UnityEngine.Mesh.MeshData,Unity.Collections.NativeSlice{System.Byte},Draco.DecodeSettings,Dictionary{UnityEngine.Rendering.VertexAttribute,System.Int32}\))

🔧 Bug Fixes

  • Android binary is 16kB page size compatible (fixes #79).
  • Linux binary is now compatible with Ubuntu 20.04.
  • Multiple XML-documentation issues.
  • (Test) Properly dispose UnityWebRequests used in unit tests.

API Changes

  • Support for Unity 2020 LTS and 2021 LTS (Note: 2021 xLTS is still supported).
  • Prevention of automatic legacy WebGL sub-package removal via `DISABLE_SUB_PACKAGE_LOAD` environment variable (were required for Unity 2020 timeouts in CI).
  • (CI) SonarQube scan job.