Definition
CreateFolder(string folderPath)
Description
Creates folderPath folder in the “Assets/Data/” path.
Parameters
folderPath
Folder path in “Assets/Data/” folder.
Example
function Init() CreateFolder("level1") CreateFolder("level1/subLevel1") end function Update() end
The first call to the CreateFolder function creates a folder named “level1” in the “Assets/Data/” path. The second call to the CreateFolder function creates a folder named “subLevel1” in the path “Assets/Data/level1/”. If we used only one function call as CreateFolder(“level1/subLevel1”), no folder would be created and the function would return an error message. Always create folders from the root path one by one.
CreateFolder