AssetImporterParameters Class
Namespace: Stride.Core.AssetsAssembly: Stride.Core.Assets.dll
Parameters used by Import(UFile, AssetImporterParameters)
public class AssetImporterParameters
| Name | Description | |
|---|---|---|
| Constructors | ||
| AssetImporterParameters() | Initializes a new instance of the AssetImporterParameters class. |
|
| AssetImporterParameters(IEnumerable<Type>) | Initializes a new instance of the AssetImporterParameters class. |
|
| AssetImporterParameters(Type[]) | Initializes a new instance of the AssetImporterParameters class. |
|
| Properties | ||
| HasSelectedOutputTypes | Gets a value indicating whether this instance has valid selected output types. |
|
| InputParameters | Gets the import input parameters. |
|
| Logger | Gets or sets the logger to use during the import. |
|
| SelectedOutputTypes | Gets the selected output types. |
|
| Methods | ||
| IsTypeSelectedForOutput(Type) | Determines whether the specified type is type selected for output by this importer. |
|
| IsTypeSelectedForOutput<T>() | Determines whether the specified type is type selected for output by this importer. |
|
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
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.IEnumerable<System.Type> | supportedTypes | The supported types. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | supportedTypes |
| System.ArgumentException | Invalid type [{0}]. Type must be assignable to Asset.ToFormat(type);supportedTypes |
AssetImporterParameters(Type[])
Initializes a new instance of the AssetImporterParameters class.
public AssetImporterParameters(params Type[] supportedTypes)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Type[] | supportedTypes | The supported types. |
Properties
HasSelectedOutputTypes
Gets a value indicating whether this instance has valid selected output types.
public bool HasSelectedOutputTypes { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
|
InputParameters
Gets the import input parameters.
public PropertyCollection InputParameters { get; }
Property Value
| Type | Description |
|---|---|
| PropertyCollection | The import input parameters. |
Logger
Gets or sets the logger to use during the import.
public Logger Logger { get; set; }
Property Value
| Type | Description |
|---|---|
| Logger |
SelectedOutputTypes
Gets the selected output types.
public Dictionary<Type, bool> SelectedOutputTypes { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.Dictionary<System.Type, System.Boolean> | 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 | Name | Description |
|---|---|---|
| System.Type | type | The type. |
Returns
| Type | Description |
|---|---|
| System.Boolean |
|
IsTypeSelectedForOutput<T>()
Determines whether the specified type is type selected for output by this importer.
public bool IsTypeSelectedForOutput<T>()
where T : Asset
Returns
| Type | Description |
|---|---|
| System.Boolean |
|
Type Parameters
| Name | Description |
|---|---|
| T | A Type asset |