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.LoadAllAssetsAtPath 指定路径加载所有资源
static function LoadAllAssetsAtPath (assetPath : string) : Object[]
Description描述
Returns an array of all asset objects at assetPath.
返回指定路径assetPath下的所有资源对象数组。
Some asset files may contain multiple objects (such as a Maya file which may contain multiple Meshes and GameObjects). All paths are relative to the project folder. Like: "Assets/MyTextures/hello.png"
有些资源文件可能包含许多对象。(例如一个maya文件可能包含许多个网格和游戏物体)。所有的路径都是相对于工程目录文件。 例如” Assets/MyTextures/hello.png”
参见:AssetDatabase.LoadAssetAtPath.
最后修改:2011年5月31日 Tuesday 14:53