Up to date

This page is up to date for Godot 4.2. If you still find outdated information, please open an issue.

PCKPacker

Inherits: RefCounted < Object

Creates packages that can be loaded into a running project.

Description

The PCKPacker is used to create packages that can be loaded into a running project using ProjectSettings.load_resource_pack.

var packer = PCKPacker.new()
packer.pck_start("test.pck")
packer.add_file("res://text.txt", "text.txt")
packer.flush()

The above PCKPacker creates package test.pck, then adds a file named text.txt at the root of the package.

Methods

Error

add_file ( String pck_path, String source_path, bool encrypt=false )

Error

flush ( bool verbose=false )

Error

pck_start ( String pck_name, int alignment=32, String key="0000000000000000000000000000000000000000000000000000000000000000", bool encrypt_directory=false )


Method Descriptions

Error add_file ( String pck_path, String source_path,