请问3.6.2的同步截屏功能怎么实现?

之前在3.4.2里,可以用这样的方法同步截屏,不用等到下一帧:
let renderTex = new RenderTexture();
renderTex.reset({
width: 1024,
height: 1024
});

    this.m_camera.node.active = true;
    this.m_camera.orthoHeight = 512;
    this.m_camera.targetTexture = renderTex;

    // director.root?.pipeline.render([this.m_camera.camera]);
    director.root?.frameMove(0);

    let sp = new SpriteFrame();
    sp.packable = false;
    sp.texture = renderTex;

但是在现在3.6.2里,完全没有效果,请问该怎么同步截屏呢?

这还是异步啊,不是同步…