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.ImportAsset 导入资源
static function ImportAsset (path : string, options : ImportAssetOptions = ImportAssetOptions.Default) : void
Description描述
Import asset at path.
导入指定路径的资源。
All paths are relative to the project folder. Like: "Assets/MyTextures/hello.png" See Also: ImportAssetOptions.
所有的路径都是相对于工程目录文件。 例如” Assets/MyTextures/hello.png”。
最后修改:2011年5月31日 Tuesday 14:18