mirror of
https://github.com/bevyengine/bevy
synced 2024-11-14 00:47:32 +00:00
f00212fd48
# Objective - Field `id` of `Handle<T>` is public: https://docs.rs/bevy/latest/bevy/asset/struct.Handle.html#structfield.id - Changing the value of this field doesn't make sense as it could mean changing the previous handle without dropping it, breaking asset cleanup detection for the old handle and the new one ## Solution - Make the field private, and add a public getter Opened after discussion in #6171. Pinging @zicklag --- ## Migration Guide - If you were accessing the value `handle.id`, you can now do so with `handle.id()` |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |