Nucleus handler tools โบ Docs โบ Context โบ CopyScriptFolder
Context.CopyScriptFolder
Open in the workbench (search, and try it in a handler)
Context.CopyScriptFolder(DestinationPath: string): boolean
Copies the handler's folder (Game.Folder) to the given destination.
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
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).
Tell us what's wrongGive feedback
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).
Tell us what's wrongGive feedback