pub fn prepare_uinodes(
    commands: Commands<'_, '_>,
    render_device: Res<'_, RenderDevice>,
    render_queue: Res<'_, RenderQueue>,
    ui_meta: ResMut<'_, UiMeta>,
    extracted_uinodes: ResMut<'_, ExtractedUiNodes>,
    view_uniforms: Res<'_, ViewUniforms>,
    ui_pipeline: Res<'_, UiPipeline>,
    image_bind_groups: ResMut<'_, UiImageBindGroups>,
    gpu_images: Res<'_, RenderAssets<Image>>,
    phases: Query<'_, '_, &mut RenderPhase<TransparentUi>>,
    events: Res<'_, SpriteAssetEvents>,
    previous_len: Local<'_, usize>
)