0 votes


So i testing my map generator in the editor using the tool keyword for fast test results instead of restarting the game and mess. but godot draws the image on the editor too, this is annoying.

Is it a bug / can i avoid this?

(godot 3.1.2 stable)

in Engine by (198 points)

Oops, very rare, draw 2 times, once on the editor's screen and once on the editor's menu. Are you drawing in the function _draw () or its signal draw? Does the script inherit from node2D or similar? It seems as if you want to make a custom panel to the editor. These days the stable version 3.2 of godot came out, download it and try if the same thing happens.

Also below in Output there is a red dot that indicates that you have an error, verify it.

I created a new project in 3.2, made a Node2D & script, added the scene to autoload.

extends Node2D

func _draw():

still happens, seems like autoload is causing it

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.