Godot Version
4.4-dev4
Question
I’m writing an Editor plugin in C++ (not GDExtension) that has a button when pressed, switches the first two scene tabs back and forth. I’m done with switching tabs, but I also want to get the camera position+rotation of the current scene tab to be copied to the next scene tab that will be displayed. I’m able to get cameras using EditorInterface::get_singleton()->get_editor_viewport_3d(0)->get_camera_3d() but I can’t seem to copy the camera transform between scene tabs. Is there a special function to get and set camera’s transform of scene tabs? Thanks in advance.