ProjectSettingsSingleton.loadResourcePack

Loads the contents of the .pck or .zip file specified by pack into the resource filesystem (res://). Returns true on success. Note: If a file from pack shares the same path as a file already in the resource filesystem, any attempts to load that file will use the file from pack unless replace_files is set to false. Note: The optional offset parameter can be used to specify the offset in bytes to the start of the resource pack. This is only supported for .pck files.

struct ProjectSettingsSingleton
@nogc nothrow
bool
loadResourcePack
(
in String pack
,
in bool replace_files = true
,
in long offset = 0
)

Meta