Class AssetImporterParameters
Parameters used by Import(UFile, AssetImporterParameters)
public class AssetImporterParameters
- Inheritance
-
AssetImporterParameters
Constructors
AssetImporterParameters()
Initializes a new instance of the AssetImporterParameters class.
public AssetImporterParameters()
AssetImporterParameters(IEnumerable<Type>)
Initializes a new instance of the AssetImporterParameters class.
public AssetImporterParameters(IEnumerable<Type> supportedTypes)
Parameters
supportedTypes
IEnumerable<Type>The supported types.
Exceptions
- ArgumentNullException
supportedTypes
- ArgumentException
Invalid type [{0}]. Type must be assignable to Asset.ToFormat(type);supportedTypes
AssetImporterParameters(params Type[])
Initializes a new instance of the AssetImporterParameters class.
public AssetImporterParameters(params Type[] supportedTypes)
Parameters
supportedTypes
Type[]The supported types.
Properties
HasSelectedOutputTypes
Gets a value indicating whether this instance has valid selected output types.
public bool HasSelectedOutputTypes { get; }
Property Value
- bool
true
if this instance has selected output types; otherwise,false
.
InputParameters
Gets the import input parameters.
public PropertyCollection InputParameters { get; }
Property Value
- PropertyCollection
The import input parameters.
Logger
Gets or sets the logger to use during the import.
public Logger Logger { get; set; }
Property Value
SelectedOutputTypes
Gets the selected output types.
public Dictionary<Type, bool> SelectedOutputTypes { get; }
Property Value
- Dictionary<Type, bool>
The selected output types.
Methods
IsTypeSelectedForOutput(Type)
Determines whether the specified type is type selected for output by this importer.
public bool IsTypeSelectedForOutput(Type type)
Parameters
type
TypeThe type.
Returns
- bool
true
if the specified type is type selected for output by this importer; otherwise,false
.
IsTypeSelectedForOutput<T>()
Determines whether the specified type is type selected for output by this importer.
public bool IsTypeSelectedForOutput<T>() where T : Asset
Returns
- bool
true
if the specified type is type selected for output by this importer; otherwise,false
.
Type Parameters
T
A Type asset