pub fn set_z_coordinates<Layer: LayerIndex>(
In: In<EntityHashMap<Layer>>,
transform_query: Query<'_, '_, &mut GlobalTransform>,
options: Res<'_, SpriteLayerOptions>,
)Expand description
Compute the z-coordinate that each entity should have. This is equal to its layer’s equivalent z-coordinate, plus an offset in the range [0, 1) corresponding to its y-sorted position (if y-sorting is enabled).