Editor scene screenshot?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By AiTechEye

Im trying to make icons in the editor by viewport from a camera, everything are in 3D but the images are always by the 2D viewport.

get_viewport().get_texture().get_data()  -- > 2D

owner.get_node("Camera").get_viewport().get_texture().get_data() --> 2D

whats wrong?

:bust_in_silhouette: Reply From: AiTechEye

using a viewport node instead, it works better