AddObjectToAsset | Adds objectToAdd to an existing asset at path. |
AssetPathToGUID | Get the GUID for the asset at path. |
ClearLabels | Removes all labels attached to an asset. |
Contains | Is object an asset? |
CopyAsset | Duplicates the asset at path and stores it at newPath. |
CreateAsset | Creates a new asset at path. |
CreateFolder | Create a new folder. |
DeleteAsset | Deletes the asset file at path. |
ExportPackage | Exports the assets identified by assetPathNames to a unitypackage file in 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 | Creates a new unique path for an asset. |
GetAllAssetBundleNames | Return all the AssetBundle names in the asset database. |
GetAssetBundleDependencies | Given an assetBundleName, returns the list of AssetBundles that it depends on. |
GetAssetDependencyHash | Returns the hash of all the dependencies of an asset. |
GetAssetOrScenePath | Returns the path name relative to the project folder where the asset is stored. |
GetAssetPath | Returns the path name relative to the project folder where the asset is stored. |
GetAssetPathFromTextMetaFilePath | Gets the path to the asset file associated with a text .meta file. |
GetAssetPathsFromAssetBundle | Get the paths of the assets which have been marked with the given assetBundle name. |
GetAssetPathsFromAssetBundleAndAssetName | Get the Asset paths for all Assets tagged with assetBundleName and
named assetName. |
GetCachedIcon | Retrieves an icon for the asset at the given asset path. |
GetCurrentCacheServerIp | Gets the IP address of the Cache Server currently in use by the Editor. |
GetDependencies | Given a pathName, returns the list of all assets that it depends on. |
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 | Returns all labels attached to a given asset. |
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 | Gets the path to the text .meta file associated with an asset. |
GetUnusedAssetBundleNames | Return all the unused assetBundle names in the asset database. |
GUIDToAssetPath | Translate a GUID to its current asset path. |
ImportAsset | Import asset at path. |
ImportPackage | Imports package at packagePath into the current project. |
IsForeignAsset | Determines whether the Asset is a foreign Asset. |
IsMainAsset | Is asset a main asset in the project window? |
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 edit in version control. |
IsSubAsset | Does the asset form part of another asset? |
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 | Returns the first asset object of type type at given path assetPath. |
LoadMainAssetAtPath | Returns the main asset object at assetPath. |
MoveAsset | Move an asset file (or folder) from one folder to another. |
MoveAssetToTrash | Moves the asset at path to the trash. |
OpenAsset | Opens the asset with associated application. |
Refresh | Import any changed assets. |
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. |
RemoveUnusedAssetBundleNames | Remove all the unused assetBundle names in the asset database. |
RenameAsset | Rename an asset file. |
SaveAssets | Writes all unsaved asset changes to disk. |
SetLabels | Replaces that list of labels on an asset. |
SetMainObject | Specifies which object in the asset file should become the main object after the next import. |
StartAssetEditing | Begin Asset importing. This lets you group several asset imports together into one larger import. |
StopAssetEditing | Stop Asset importing. This lets you group several asset imports together into one larger import. |
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 | Checks if an asset file can be moved from one folder to another. (Without actually moving the file). |
WriteImportSettingsIfDirty | Writes the import settings to disk. |