Figure out the unique ID mechanics for assets
kvark opened this issue · 2 comments
kvark commented
Turns out the TypeID can't be used, because Rust is happily keeping it the same if the structure changes. Still unique within the program, but not what we expect it to be.
zakarumych commented
It can also change when recompiled with the same structure.
You may wish to use a hash of data layout as ID.
Or generate ID and put it onto type with a macro.
kvark commented
Yep, that's what I'm going to do