DaveTheCoder Thanks for the reply. That's the approach I'm currently implementing, but I wasn't sure if this is a good approach. However, the system doesn't seem to be working. I have it like this:
I have some const variables in a global autoload enabled by the addon, (called for example NameSpace):
const TypeName = preload("res://addons/my_addon/TypeClass.gd")
I expect it to work like this (other scripts):
@export var my_var:NameSpace.TypeName
Does it work like this? The custom editor properties don't seem to be working, but I guess there is some problem somewhere else and the NameSpace thing should work.
Edit: I keep getting this error and none of my EditorProperties work in the inspectors:
Failed to set a resource of the type 'Resource' because this EditorResourcePicker only accepts "blahblah.gd"