Here's my problem: every time I create a new Node2D scene the 2D canvas editor zoom is set to 25% and the (0, 0) global origin is way up in the upper left corner. I'm making pixel art games which means each time I have to mash the zoom button or shortcut about 10 times to get to the 800% zoom needed to see my sprites and I have to click the center view button or shortcut. This has gotten frustratingly annoying to have to do. Is there a way to set a default zoom and make sure that the global origin is centered every time I create a new scene?
I have a 4k monitor I fully admit that this may be the cause of this issue but I feel that 4k monitors aren't that much of an edge case that nobody else has this frustration if it is the cause of the problem.
#2D canvas editor default zoom and centering
4 messages · Page 1 of 1 (latest)
There's not a default way, but it's probably possible to make an EditorScript that does that for you.
I'm looking through the documentation for EditorScript and I'm not really sure how to go about performing the tasks I want within the script.
Making it as an EditorScript would be just as a way to trigger it anywhere in the editor; from there you'd probably use EditorInterface.get_editor_viewport_2d() to get the SubViewport node that is rendering things, and zoom/move the view in there.