A method for use in objects that teleport with duplicate meshes turned on.
This is called on a teleported node if HasMethod() returns true.
private static readonly StringName DuplicateMeshesCallback = new("GetTeleportableMeshes");
Example:
// Inside a node that teleports, implement the callback method.
[Export] MeshInstance3D mesh;
private Array<MeshInstance3D> GetTeleportableMeshes()
{
// stuff here...
return [.. mesh];
}