#getting editor camera angle in script?

1 messages · Page 1 of 1 (latest)

desert stream
#

i want some text to face the editor camera for easier editing. how can i get the editor camera's rotation or position in a script? (i already have @tool set up, just need to know the variable to access)

civic scaffold
#

From my brief searching, There is an EditorInterface singleton you can use to access the editor camera.
https://docs.godotengine.org/en/stable/classes/class_editorinterface.html#class-editorinterface-method-get-editor-viewport-3d
EditorInterface.get_editor_viewport_3d(0).get_camera_3d() should get the editor camera