You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a really minor thing, but I couldn't seem to figure out any way to do this. I know that in GDscript you could just specify a const string after the class declaration for the icon, but I don't know what the alternative would be for PythonScript. Is this functionality added yet and is there a way to do this?
If not, could this be added in the future?
The text was updated successfully, but these errors were encountered:
Sure thing! Here's a section of GDscript: class_name Room2D, "res://assets/editor/room2D.png" extends Node2D
The "res://assets/editor/room2D.png" is the const string to the filepath of a specific icon I want to load as an image for a node's icon - and I was wondering if that behaviour was doable in Python.
Just realized my explanation up top was sort of not the best anyways, should've specified more... sorry!
This is a really minor thing, but I couldn't seem to figure out any way to do this. I know that in GDscript you could just specify a const string after the class declaration for the icon, but I don't know what the alternative would be for PythonScript. Is this functionality added yet and is there a way to do this?
If not, could this be added in the future?
The text was updated successfully, but these errors were encountered: