Change scene settings by code? (EditorPlugin)

Is there a way to change the current scene settings (to hide grid, gizmos, environment) tempoary from a EditorPlugin?
(Not the editor settings)

Im making a simple EditorPlugin that takes a picture of the current scene to make images to the game, but right now i have to disable this settings and enable them again by hand from the settings menu. any idea?

I don’t think it’s exposed to scripting directly but you can try to do it following something similar to this How to open a new empty or inherited scene tab via code in the editor? - #2 by mrcdk

You can use this addon Editor debugger - Godot Asset Library to get the NodePaths needed to toggle the different settings you need.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.