Add functions for Assets<T> to retrieve multiple references similar to Query<...>
Solution
The Query type has the get_many and get_many_mut methods to get around this limitation, allowing multiple Entities to be looked up at once, with a dynamic check to prevent the same entity from being accessed multiple times. A similar pattern can be followed here.
Part of #16244
Objective
Add functions for
Assets<T>
to retrieve multiple references similar toQuery<...>
Solution
The Query type has the
get_many
andget_many_mut
methods to get around this limitation, allowing multiple Entities to be looked up at once, with a dynamic check to prevent the same entity from being accessed multiple times. A similar pattern can be followed here.