HotfixHelper
Coding Style wiki
using OxGFrame.Hotfixer.Editor;
Methods
ToRelativeAssetPath
Converts an absolute path to a path relative to the project's Assets/ directory.
Params
string s: Full file path
CopyAOTDllsAndHotfixDlls
Executes the copy operation for both AOT and Hotfix assemblies in one click, collecting all relevant files into the HotfixCollector directory.
CopyAOTAssembliesToDestination
Copies AOT assemblies (DLLs after IL2CPP stripping) to the target directory. This method automatically changes the extension to .dll.bytes to facilitate resource loading.
Params
string dstDir: Custom output directory (if null, outputs to the defaultHotfixCollectordirectory)
Important Stripped AOT DLLs are only generated after HybridCLR -> Generate All. If the file is prompted as non-existent, please execute Generate All first.
CopyHotfixAssembliesToDestination
Copies hot-update assemblies (Hotfix DLLs) to the target directory and automatically changes the extension to .bytes.
Params
string dstDir: Custom output directory (if null, outputs to the defaultHotfixCollectordirectory)
ExportHotfixDllConfig
Generates the configuration file for hot-update DLLs (HotfixDllConfig), supporting JSON or encrypted binary formats.
Params
List<string> aotDlls: List of AOT assemblies that need metadata supplementationList<string> hotfixDlls: List of hot-update assembliesbool cipher: Whether to enable encryption (outputs as Bytes format if true, otherwise Json)