Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


AssetImporter

Base class from which asset importers for specific asset types derive.
Read time 4 minutesLast updated 5 days ago

Definition

[ExcludeFromObjectFactory]public class AssetImporter : Object

Properties

Property

Description

assetBundleNameGet or set the AssetBundle name.
assetBundleVariantGet or set the AssetBundle variant.
assetPathThe path name of the asset for this importer. (Read Only)
importSettingsMissingThe value is true when no meta file is provided with the imported asset.
userDataGet or set any user data.

Methods

Method

Description

AddRemapMap a sub-asset from an imported asset (such as an FBX file) to an external Asset of the same type.
GetExternalObjectMapGets a copy of the external object map used by the AssetImporter.
RemoveRemapRemoves an item from the map of external objects.
SaveAndReimportSave asset importer settings if asset importer is dirty.
SetAssetBundleNameAndVariantSet the AssetBundle name and variant.
SupportsRemappedAssetTypeChecks if the AssetImporter supports remapping the given asset type.

Static Methods

Method

Description

GetAtPathRetrieves the asset importer for the asset at
path
.
GetImportLogRetrieves logs generated during the import of the asset at path.

Structs

Struct

Description

AssetImporter.SourceAssetIdentifierRepresents a unique identifier for a sub-asset embedded in an imported Asset (such as an FBX file).

Inheritance

Inherited Members

Operators

Operator

Description

operator ==Compares two object references to see if they refer to the same object.
boolDetermines whether the object exists.
operator !=Compares if two objects refer to a different object.