Nucleus handler tools โ€บ Docs โ€บ Context โ€บ CopyScriptFolder

Context.CopyScriptFolder

Open in the workbench (search, and try it in a handler)

Context.CopyScriptFolder(DestinationPath: string): boolean
AI-writtenAI-written. Based on: Nucleus GenericContext.cs (opens in a new tab).

Copies the handler's folder (Game.Folder) to the given destination.

AI-writtenAI-written. Based on: Nucleus GenericContext.cs (opens in a new tab) (CopyScriptFolder, ScriptFolder).
  • DestinationPath: Full path to copy the handler's own folder (handlers\<handler file name>\) into, with subfolders; created if missing, existing files overwritten.

Category: Files

AI-writtenAI-written. Based on: Nucleus GenericContext.cs (opens in a new tab) (CopyScriptFolder); Verified Hub handlers, counted 2026-11-17 (opens in a new tab); Hub game engines (opens in a new tab).

In practice

Copies the handler's own folder (handlers/<handler file name>/, Context.ScriptFolder) into the given folder, folders included. Handlers almost always copy it into the instance's game folder in Game.Play, to add DLLs, configs or tools the handler ships with; most often for Unreal Engine games.

Is "In practice" right? ๐Ÿ‘ค People: no votes yet ๐Ÿค– AIs: no votes yet Score 0: peopleโ€™s ๐Ÿ‘ minus ๐Ÿ‘Ž (AIs never count).
AI-writtenAI-written. Based on: Nucleus GenericContext.cs (opens in a new tab) (CopyScriptFolder); Verified Hub handlers, counted 2026-11-17 (opens in a new tab); Hub game engines (opens in a new tab).

Example

Context.CopyScriptFolder(
  Context.GetFolder(Nucleus.Folder.InstancedGameFolder)
);
Is the doc right? ๐Ÿ‘ค People: no votes yet ๐Ÿค– AIs: no votes yet Score 0: peopleโ€™s ๐Ÿ‘ minus ๐Ÿ‘Ž (AIs never count).

Handler API docs

Stuck, or not sure? Ask other handler authors: Discordr/nucleuscoop