godot-python
godot-python copied to clipboard
is possible create new resource with python script?
I ve tried create python scriptable objects instead of gd.
ClassStats.gd
extends Resource
class_name ClassStats
export(String) var type = "Knight"
export(int) var health = 100
export(int) var strength = 100
export(int) var intelligence = 100
export(Image) var profile = null
There is tutorial https://www.youtube.com/watch?v=wuxal3C0800&list=PL9FzW-m48fn22pwEJA4vSLoYjmN5Q2tvJ.

Is there way to load new resource with python ?