#1229·draco

WASM build doesn't expose set_unique_id

Author: FollingCreated Sep 30, 2026Updated Sep 30, 2026

We have a custom attribute identified through unique ID which is set by our backend service.

The frontend does some changes to the mesh and is supposed to be reencoded with that that custom attribute and unique id, however it appears that the set_unique_id API is not being exposed as writable.

To facilitate this usecase it would be nice if the following c++ functionality could be made to work in the JS version of the library:

cpp
auto * metadata_attr = draco_mesh.attribute(metadata_attr_id);
metadata_attr->set_unique_id(std::to_underlying(CustomAttributes::Metadata));