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.IsMainAsset 是否主资源
static function IsMainAsset (obj : Object) : bool
static function IsMainAsset (instanceID : int) : bool
Description描述
Is asset a main asset in the project window?
该资源在Project窗口中是不是主资源?
For example an imported model has a game object as its root and several Meshes and child game objects in expanded state. The root game object is the main asset in this case.
例如导入的模型有一个游戏物体做为它的根物体以及几个网格和扩充的子物体。在这个例子中根物体就是主资源。
最后修改:2011年5月31日 Tuesday 13:55