Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    AssetImporterParameters Class

    Namespace: Stride.Core.Assets
    Assembly: Stride.Core.Assets.dll

    Parameters used by Import(UFile, AssetImporterParameters)

    System.Object → AssetImporterParameters
    Derived from 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.

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    Properties


    HasSelectedOutputTypes

    Gets a value indicating whether this instance has valid selected output types.

    public bool HasSelectedOutputTypes { get; }
    Property Value
    Type Description
    System.Boolean

    true if this instance has selected output types; otherwise, false.


    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.

    | Improve this Doc View Source

    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

    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
    Type Description
    System.Boolean

    true if the specified type is type selected for output by this importer; otherwise, false.

    Type Parameters
    Name Description
    T

    A Type asset


    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation