dbat · @dbat
70 followers · 667 posts · Server mastodon.gamedev.place

Godot 4 Question
----------------
Context: Writing an Addon in gdscript.
Aim: Create scripts at runtime & have class_name registered.

I need to make scripts like:
class_name Foo
extends Resource

and:
class Bar
extends Foo

Hence Foo and Bar must be 'known' by Godot.

I can make, write and new() the scripts but Godot does not recognize the class names.

Any ideas? Super stuck. 😔

#godotengine #class_name #gdscript

Last updated 1 year ago