0 votes

I have an autoload script, PlayerData, with a DebugMode variable (int). Debug messages are displayed based on the value of DebugMode (0 = none, 1 = event triggers, 2 = var reassignment, etc).

I also have tools made, like items where you can set there "item_type" and the item in the editor will reflect it.

but since it's a tool in the editor, and it's not running the autoload script, PlayerData, I keep getting these untrue warning in my output while editing, scrolling past possible useful information.

(warnings do not appear while running, this is while editing)

any advice??

in Engine by (35 points)

1 Answer

0 votes
Best answer

moved the code for debug messages.

Separated it from the code that updates the items when I change the "item_type" variable in my editor.

by (35 points)
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.