Интерфейс для доступа к ассетам и выполнения операций в ассетах.
onImportPackageItemsCompleted | Callback raised whenever a package import successfully completes that lists the items selected to be imported. |
AddObjectToAsset | Добавляет objectToAdd к существующему ассету в path. |
AllowAutoRefresh | Decrements an internal counter which Unity uses to determine whether to allow automatic AssetDatabase refreshing behavior. |
AssetPathToGUID | Get the GUID for the asset at path. |
ClearLabels | Удаляет все метки, привязанные к ассету. |
Contains | Является ли объект ассетом? |
CopyAsset | Дублирует ассет в path и сохраняет его в newPath. |
CreateAsset | Создаёт новый ресурс по указанному пути. |
CreateFolder | Создать новую папку. |
DeleteAsset | Deletes the specified asset or folder. |
DeleteAssets | Lets you delete multiple assets or folders at once with performance benefits under version control. |
DisallowAutoRefresh | Increments an internal counter which Unity uses to determine whether to allow automatic AssetDatabase refreshing behavior. |
ExportPackage | Экспортирует ассеты, определяемые по assetPathNames к файлу unitypackage в fileName. |
ExtractAsset | Creates an external Asset from an object (such as a Material) by extracting it from within an imported asset (such as an FBX file). |
FindAssets | Search the asset database using the search filter string. |
ForceReserializeAssets | Forcibly load and re-serialize the given assets, flushing any outstanding data changes to disk. |
GenerateUniqueAssetPath | Создает новый уникальный путь для ассета. |
GetAllAssetBundleNames | Return all the AssetBundle names in the asset database. |
GetAssetBundleDependencies | Given an assetBundleName, returns the list of AssetBundles that it depends on. |
GetAssetDependencyHash | Возвращает массив всех объектов ассета в assetPath. |
GetAssetOrScenePath | Возвращает имя пути относительно папки проекта, где хранится ассет. |
GetAssetPath | Возвращает имя пути относительно папки проекта, где хранится ассет. |
GetAssetPathFromTextMetaFilePath | Получает путь к текстовому файлу .meta, связанному с ассетом. |
GetAssetPathsFromAssetBundle | Returns an array containing the paths of all assets marked with the specified Asset Bundle name. |
GetAssetPathsFromAssetBundleAndAssetName | Get the Asset paths for all Assets tagged with assetBundleName and named assetName. |
GetCachedIcon | Восстанавливает иконку для ассета на данном пути ассета. |
GetCurrentCacheServerIp | Gets the IP address of the Cache Server currently in use by the Editor. |
GetDependencies | Returns an array of all the assets that are dependencies of the asset at the specified pathName.Note: GetDependencies() gets the Assets that are referenced by other Assets. For example, a Scene could contain many GameObjects with a Material attached to them. In this case, GetDependencies() will return the path to the Material Assets, but not the GameObjects as those are not Assets on your disk. |
GetImplicitAssetBundleName | Returns the name of the AssetBundle that a given asset belongs to. |
GetImplicitAssetBundleVariantName | Returns the name of the AssetBundle Variant that a given asset belongs to. |
GetLabels | Возвращает все метки, прикрепленные к данному ассету. |
GetMainAssetTypeAtPath | Returns the type of the main asset object at assetPath. |
GetSubFolders | Given a path to a directory in the Assets folder, relative to the project folder, this method will return an array of all its subdirectories. |
GetTextMetaFilePathFromAssetPath | Получает путь к текстовому файлу .meta, связанному с ассетом. |
GetUnusedAssetBundleNames | Return all the unused assetBundle names in the asset database. |
GUIDToAssetPath | Gets the corresponding asset path for the supplied guid, or an empty string if the GUID can't be found. |
ImportAsset | Импорт ассета по пути. |
ImportPackage | Импортирует пакет по packagePath в текущий проект. |
IsForeignAsset | Determines whether the Asset is a foreign Asset. |
IsMainAsset | Является ли ассет главным ассетом в окне проекта? |
IsMainAssetAtPathLoaded | Returns true if the main asset object at assetPath is loaded in memory. |
IsMetaFileOpenForEdit | Query whether an asset's metadata (.meta) file is open for edit in version control. |
IsNativeAsset | Determines whether the Asset is a native Asset. |
IsOpenForEdit | Query whether an Asset file is open for editing in version control. |
IsSubAsset | Является ли форма ассета частью другого ассета? |
IsValidFolder | Given a path to a folder, returns true if it exists, false otherwise. |
LoadAllAssetRepresentationsAtPath | Returns all sub Assets at assetPath. |
LoadAllAssetsAtPath | Returns an array of all Assets at assetPath. |
LoadAssetAtPath | Возвращает первый объект ассета типа type по данному пути assetPath. |
LoadMainAssetAtPath | Возвращает объект главного ассета в assetPath. |
MakeEditable | Makes a file open for editing in version control. |
MoveAsset | Move an asset file (or folder) from one folder to another. |
MoveAssetsToTrash | Lets you move multiple assets or folders to trash at once with performance benefits under version control. |
MoveAssetToTrash | Moves the specified asset or folder to the OS trash. |
OpenAsset | Открывает ассет с соответствующим приложением. |
Refresh | Импорт любых измененных ассетов. |
ReleaseCachedFileHandles | Calling this function will release file handles internally cached by Unity. This allows modifying asset or meta files safely thus avoiding potential file sharing IO errors. |
RemoveAssetBundleName | Remove the assetBundle name from the asset database. The forceRemove flag is used to indicate if you want to remove it even it's in use. |
RemoveObjectFromAsset | Removes object from its asset (See Also: AssetDatabase.AddObjectToAsset). |
RemoveUnusedAssetBundleNames | Remove all the unused assetBundle names in the asset database. |
RenameAsset | Переименуйте файл ассета. |
SaveAssets | Записывает все несохраненные изменения на диск. |
SetLabels | Заменяет список меток на ассет. |
SetMainObject | Specifies which object in the asset file should become the main object after the next import. |
StartAssetEditing | Starts importing Assets into the Asset Database. This lets you group several Asset imports together into one larger import.Note: Calling AssetDatabase.StartAssetEditing() places the Asset Database in a state that will prevent imports until AssetDatabase.StopAssetEditing() is called. This means that if an exception occurs between the two function calls, the AssetDatabase will be unresponsive. Therefore, it is highly recommended that you place calls to AssetDatabase.StartAssetEditing() and AssetDatabase.StopAssetEditing() inside either a try..catch block, or a try..finally block as needed. |
StopAssetEditing | Stops importing Assets into the Asset Database. This lets you group several Asset imports together into one larger import.Note: Calling AssetDatabase.StartAssetEditing() places the Asset Database in a state that will prevent imports until AssetDatabase.StopAssetEditing() is called. This means that if an exception occurs between the two function calls, the AssetDatabase will be unresponsive. Therefore, it is highly recommended that you place calls to AssetDatabase.StartAssetEditing() and AssetDatabase.StopAssetEditing() inside either a try..catch block, or a try..finally block as needed. |
TryGetGUIDAndLocalFileIdentifier | Warning Use the overload with a long localId parameter. Using the overload with an integer localId parameter can cause an integer overflow in localId. This can happen when the object passed to the API is part of a Prefab.Get the GUID and local file id from an object instance id. |
ValidateMoveAsset | Проверяет, если файл ассета может быть перемещен из одной папки в другую. (Фактически без перемещения файла). |
WriteImportSettingsIfDirty | Записывает настройки импорта на диск. |
importPackageCancelled | Callback raised whenever a package import is cancelled by the user. |
importPackageCompleted | Callback raised whenever a package import successfully completes. |
importPackageFailed | Callback raised whenever a package import failed. |
importPackageStarted | Callback raised whenever a package import starts. |
ImportPackageCallback | Delegate to be called from AssetDatabase.ImportPackage callbacks. packageName is the name of the package that raised the callback. |
ImportPackageFailedCallback | Delegate to be called from AssetDatabase.ImportPackage callbacks. packageName is the name of the package that raised the callback. errorMessage is the reason for the failure. |