AssetDatabase.CreateFolder Manual     Reference     Scripting  
Scripting > Editor Classes > AssetDatabase
AssetDatabase.CreateFolder

static function CreateFolder (parentFolder : String, newFolderName : String) : String

Parameters

NameDescription
parentFolder the name of the parent folder
newFolderName the name of the new folder

Returns

String - the GUID of the newly created folder * string guid = AssetDatabase.CreateFolder("Assets", "My Folder"); * string newFolderPath = AssetDatabase.GUIDToAssetPath(guid);

Description

Create a new folder.