AssetDatabase
- AddObjectToAsset
- AssetPathToGUID
- ClearLabels
- CompleteLabel
- Contains
- CopyAsset
- CreateAsset
- CreateFolder
- DeleteAsset
- ExportPackage
- GenerateUniqueAssetPath
- GetAssetPath
- GetCachedIcon
- GetDependencies
- GetLabels
- GetTextMetaDataPathFromA...
- GUIDToAssetPath
- ImportAsset
- ImportPackage
- IsMainAsset
- LoadAllAssetRepresentations...
- LoadAllAssetsAtPath
- LoadAssetAtPath
- LoadMainAssetAtPath
- MoveAssetToTrash
- MoveAsset
- OpenAsset
- Refresh
- RenameAsset
- SaveAssets
- SetLabels
- StartAssetEditing
- StopAssetEditing
- ValidateMoveAsset
AssetDatabase.CreateFolder 创建文件夹
static function CreateFolder (parentFolder : String, newFolderName : String) : String
Parameters参数
-
parentFolderthe name of the parent folder // 父文件夹的名字
-
newFolderNamethe name of the new folder // 新文件夹的名字
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.
创建一个新的文件夹。
最后修改:2011年10月1日 Saturday 16:57