![]() # Objective Fix #18079 ## Solution - `EntityCloner` can now move components that don't have `Clone` or `Reflect` implementation. - Components with `ComponentCloneBehavior::Ignore` will not be moved. - Components with `ComponentCloneBehavior::Custom` will be cloned using their defined `ComponentCloneFn` and then removed from the source entity to respect their `queue_deferred` logic. - Relationships still need to be `Clone` or `Reflect` to be movable. - Custom relationship data is now correctly preserved when cloned or moved using `EntityCloner`. ## Testing - Added new tests for moving components --------- Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
LICENSE-APACHE | ||
LICENSE-MIT |