unity render camera to texture 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