unity camera viewport texture to plane code example
Example: project camera view to texture
var img = camera.get_viewport().get_texture().get_data()
var tex = ImageTexture.new()
tex.create_from_image(img)
get_node("c").texture = tex
var img = camera.get_viewport().get_texture().get_data()
var tex = ImageTexture.new()
tex.create_from_image(img)
get_node("c").texture = tex