godot-python icon indicating copy to clipboard operation
godot-python copied to clipboard

is possible create new resource with python script?

Open vaclavbenes opened this issue 7 years ago • 0 comments

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.

class

Is there way to load new resource with python ?

vaclavbenes avatar Jan 06 '19 22:01 vaclavbenes