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.ValidateMoveAsset 验证移动资源
static function ValidateMoveAsset (oldPath : string, newPath : string) : string
Parameters参数
-
oldPaththe path where the asset currently resides
当前资源所处的路径 -
newPaththe path which the asset should be moved to
资源应该移动到的路径
string - an empty string, if the asset can be moved, and an error string otherwise. All paths are relative to the project folder. Like: "Assets/MyTextures/hello.png"
返回String类型 - 如果资源可以移动返回一个空的字符串,否者返回错误字符串。所有的路径都是相对于工程目录文件。例如” Assets/MyTextures/hello.png”。
Description描述
Checks if an asset file can be moved from one folder to another. (Without actually moving the file)
检查一个资源文件是否可以从一个文件夹移动到另外一个。(并不是真的移动这个文件)
最后修改:2011年5月31日 Tuesday 14:05