pigdevstudio / platform_template

Template project for platform games in Godot Engine.
MIT License
72 stars 12 forks source link

Print information if exported Debug boolean is set to true in Inspecotr #29

Open Zerokami opened 6 years ago

Zerokami commented 6 years ago

Why not have a Debug boolean for plugin that prints useful information like state change and other info if Debug is true.

And maybe in the future even an array of strings with debug levels.

Depending on the debug level we print stuff about the actor.

henriiquecampos commented 6 years ago

I dunno, technically this debugging is as easy as adding a label to the scene. All you need is to connect the state_changed signal to a Control and set the Label.text to the state you want to debug.

But sure, this would be a nice tool to have, as we always use it while developing. Although the approach should change to something like a tool script that adds such debugging to said class.

Maybe a export (bool) var debug can do the trick for now.