How can I render a camera's image to a texture from a blueprint?

,hi guys

i managed to use scenecapture2d for a pic in pic camera during game,using profilegpu command,founded that it s compounding frame time about 15ms

so i changed code in a way that when user closes pic in pic, scenecapture 's texture target i set to none.(deactiving didnt help)

now when the pic in pic is hidden it dosent increase render time.

thouth may help.