How to avoid auto-saving custom resource parent's properties

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

Hi,

I created a new Resource inheriting from ArrayMesh through GDExtension (the new GDNative in Godot 4.0) in C++. The point is to generate a Mesh with a few integers as data and to not save the whole Mesh data.
But since it inherits from ArrayMesh, all the mesh data is saved with the resource when it is referenced in a MeshInstance, for example. Is there a way to prevent this? I don’t care if I have to rewrite the whole saving routine, but I don’t want any property of the parent ArrayMesh to be saved, maybe it can make the process simpler?