publish: trueIf I remember correctly preload Is only available in GDScript And is not available in GDExtensions like SwiftGodot.
You can also
preloadresources. Unlikeload, this function will read the file from disk and load it at compile-time. As a result, you cannot callpreloadwith a variable path: you need to use a constant string.