Resource saver doesnt save custom resources correctly

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By ababen

I have 2 custom resources: StatsResource and InventoryResource
i also have a custom resource called SaveGame, i keep the other two resources inside that resource and i use ResourceSaver to save the SaveGame resource as a file. however, it saves my custom resource types as if they are textures for some reason:

enter image description here

when i save a non-custom resource, like SpriteFrames for example, it does save it correctly. why does is happen and what should i do?