Class RawAssetImporterBase<TAsset>
public abstract class RawAssetImporterBase<TAsset> : AssetImporterBase, IRawAssetImporter, IAssetImporter where TAsset : Asset, IAssetWithSource, new()
Type Parameters
TAsset
- Inheritance
-
objectRawAssetImporterBase<TAsset>
- Implements
- Derived
- Inherited Members
- Extension Methods
Properties
RootAssetTypes
Gets the types of asset that are mainly generated by this importer.
public override sealed IEnumerable<Type> RootAssetTypes { get; }
Property Value
Methods
Import(UFile, AssetImporterParameters)
Imports a raw assets from the specified path into the specified package.
public override sealed IEnumerable<AssetItem> Import(UFile rawAssetPath, AssetImporterParameters importParameters)
Parameters
rawAssetPathUFileThe path to a raw asset on the disk.
importParametersAssetImporterParametersThe parameters. It is mandatory to call GetDefaultParameters(bool) and pass the parameters instance here
Returns
Import(UFile, UFile, TAsset)
Imports rawAssetPath into asset. The default sets the source and returns
the asset at location; override to read more from the file or produce several assets.
protected virtual IEnumerable<AssetItem> Import(UFile rawAssetPath, UFile location, TAsset asset)
Parameters
rawAssetPathUFilelocationUFileassetTAsset