Godot Version
4.6.1
Question
Hello! I am getting bizarre error associated with exported custom resources with a constructor disappearing at runtime.
My TileDB global contains an exported Array of my Tile class. When the game starts, these errors are thrown,
and my exported Tile resources disappear.
My TileDB global does not edit the Tiles.
My Tile class with the constructor:
extends Resource
class_name Tile
@export var id: String
@export var source_id: int
@export var atlas_coords: Vector2i
func _init(_id: String, _source_id: int, _atlas_coords: Vector2i) → void:
id = _id
source_id = _source_id
atlas_coords = _atlas_coords
In Editor:
During runtime:
I’ve bashing my head in trying to figure out what’s going on, so any insights would be appreciated!


