Godot Version
Godot 4.4 dev3
Question
Is it possible to export a custom resource type which is local to a script?
Here an example of what I am refering to
extends Node
# blablabla some code here
class MyResource extends Resource:
@export_multiline var some_string:String
@export_range(0.0, 1.0, 0.01) var some_number:int
@export var exported_resource:MyResource
When writing code like this I have found that exporting a resource like this simply exports it like as if it were a generic resource.
Meaning, it lists all possible resources when clicking on it, but obviously not the internal resource types defined in the script.
So the final question is: Can I export a resource with an internal class?
I don’t want these Resource type hints to show up everywhere, I just want to use them sometimes.