1. Home
  2. Docs
  3. Save Game Pro
  4. Scripting API
  5. SaveGame.Copy

SaveGame.Copy

Description

Copies a identifier to another identifier, also, can be used for duplicating or replacing.

You can copy folders and files, here is the conditions:

If the first identifier is a file and the second one is a file and the second file is exists, then the second identifier will be replaced.

If the first identifier is a file and the second one isĀ  a file and the second file is not exists, then the first identifier will be duplicated.

If the first identifier is a file and the second one is a folder, then the first identifier will be copied into the folder.

If the first identifier is a folder and the second one is a folder and the second folder is exists, then the first identifier will be copied into the second folder.

If the first identifier is a folder and the second one is a folder and the second folder is not exists, then the first identifier will be duplicated.

Parameters

NameTypeDescriptionRequired
fromIdentifierstringThe identifier to copy from.required
toIdentifierstringThe identifier to paste.required
settingsSaveGameSettingsThe optional settings.optional

Examples

Copy Simple Identifier

Copy to Folder

Copy Folder

Copy to Folder with Custom Name

 

Was this article helpful to you? Yes No

How can we help?