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.OpenAsset 打开资源
static function OpenAsset (instanceID : int, lineNumber : int = -1) : bool
static function OpenAsset (target : Object, lineNumber : int = -1) : bool
Description描述
Opens the asset with associated application.
用关联的程序打开资源文件。
Opens asset in an external editor, texture application or modelling tool depending on what type of asset it is. If it is a text file, lineNumber instructs the text editor to go to that line.
使用外部编辑器。纹理引用程序或者模型工具来打开不同资源类型的资源,如果是文本文件,行编号会指引文本编辑器找到对应行。
最后修改:2011年5月31日 Tuesday 14:58