+1 vote

I have a tool node. It has an overridden _draw, where I'm putting some debug-like info on top of the node. I would like this info to only show when in editor, but not in game, is there something like:

func _draw():
  if IN_EDITOR:
    draw_line(...)
Godot version 3.1.1-stable
in Engine by (68 points)

There's Engine.editor_hint. Should have looked deeper before posting

1 Answer

+1 vote
Best answer
by (7,190 points)
selected by
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 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 webmaster@godotengine.org with your username.