RenderTexture for creating textures dynamically in CC3

Hi, I use to create textures in Cocos2d-x JavaScript with the following code:

var render = new cc.RenderTexture(...
render.begin();
...
mySprite.visit();
...
render.end();

And obtaining it from render.getSprite().texture

Any way for doing something similar in CC3?
Thanks

You can refer to this doc

https://docs.cocos.com/creator/3.0/manual/en/asset/render-texture.html

And you can setup a RenderTexture as rendering output in Camera’s target texture

https://docs.cocos.com/creator/3.0/api/en/classes/component_camera.camera.html#targettexture

Thanks, I’m trying to figure out how that works different from Cocos2d JavaScript.

There are demos in test-cases-3d repo, search for scenes inside rendertexture folder