AssetImporter
Base class from which asset importers for specific asset types derive.
Read time 4 minutesLast updated 5 days ago
Definition
- Type: Class
- Namespace: UnityEditor
- Assembly: UnityEditor
- Inherits from: Object
[ExcludeFromObjectFactory]public class AssetImporter : Object
Properties
Property | Description |
|---|---|
| assetBundleName | Get or set the AssetBundle name. |
| assetBundleVariant | Get or set the AssetBundle variant. |
| assetPath | The path name of the asset for this importer. (Read Only) |
| importSettingsMissing | The value is true when no meta file is provided with the imported asset. |
| userData | Get or set any user data. |
Methods
Method | Description |
|---|---|
| AddRemap | Map a sub-asset from an imported asset (such as an FBX file) to an external Asset of the same type. |
| GetExternalObjectMap | Gets a copy of the external object map used by the AssetImporter. |
| RemoveRemap | Removes an item from the map of external objects. |
| SaveAndReimport | Save asset importer settings if asset importer is dirty. |
| SetAssetBundleNameAndVariant | Set the AssetBundle name and variant. |
| SupportsRemappedAssetType | Checks if the AssetImporter supports remapping the given asset type. |
Static Methods
Method | Description |
|---|---|
| GetAtPath | Retrieves the asset importer for the asset at |
| GetImportLog | Retrieves logs generated during the import of the asset at path. |
Structs
Struct | Description |
|---|---|
| AssetImporter.SourceAssetIdentifier | Represents a unique identifier for a sub-asset embedded in an imported Asset (such as an FBX file). |
Inheritance
Operators
Operator | Description |
|---|---|
| operator == | Compares two object references to see if they refer to the same object. |
| bool | Determines whether the object exists. |
| operator != | Compares if two objects refer to a different object. |