ThreePipe
    Preparing search index...

    Interface ImportFilesOptions

    interface ImportFilesOptions {
        _testDataTextureComplete?: boolean;
        allowedExtensions?: string[];
        autoImportZipContents?: boolean;
        createUniqueNames?: boolean;
        fileExtension?: string;
        fileHandler?: ILoader<any, any>;
        forceImporterReprocess?: boolean;
        generateMipmaps?: boolean;
        processImported?: boolean;
        processRaw?: boolean;
        queryString?: string;
        replaceCameras?: boolean;
        replaceLights?: boolean;
        replaceMaterials?: boolean;
        rootPath?: string;
        useMeshLines?: boolean;
        [key: string]: any;
    }

    Hierarchy (View Summary)

    Indexable

    • [key: string]: any
    Index

    Properties

    _testDataTextureComplete?: boolean

    default = false, if set to true, it will test if the data textures are complete. [internal use]

    allowedExtensions?: string[]

    Allowed file extensions. If undefined, all files are allowed.

    autoImportZipContents?: boolean

    default = true, if true, the importer will automatically import the contents of zip files, if zip importer is registered.

    createUniqueNames?: boolean

    If true, the loader will create unique names for objects in the gltf file when multiple objects with the same name are found.

    Note - Only for gltf, glb files or files loaded with GLTFLoader2. If this flag is not passed, the default value is the value of the static property GLTFLoader2.CreateUniqueNames.

    fileExtension?: string

    The file extension to use for the file. If not specified, the importer will try to determine the file extension from the file name/url.

    fileHandler?: ILoader<any, any>

    The custom ILoader to use for the file. If not specified, the importer will try to determine the loader from the file extension.

    forceImporterReprocess?: boolean

    default = false. If true, the importer will reprocess the imported objects, even if they are already processed.

    generateMipmaps?: boolean

    default = undefined, only used for textures

    processImported?: boolean

    use processRaw instead

    processRaw?: boolean

    default = true, toggle to control the processing of the raw objects in the proecssRaw method

    queryString?: string

    Query string to add to the url. Default = undefined

    replaceCameras?: boolean

    If true, the importer will replace any three.js camera instances with upgraded cameras default = true

    replaceLights?: boolean

    If true, the importer will replace any three.js light instances with upgraded lights default = true

    replaceMaterials?: boolean

    If true, the importer will replace any three.js material instances with upgraded materials default = true

    rootPath?: string

    internal use

    useMeshLines?: boolean

    Use MeshLine(an extension of three.js Line2) instead of default Line for lines. This allows changing line width(fat lines) and other properties.

    Note - Only for gltf, glb files or files loaded with GLTFLoader2. If this flag is not passed, the default value is the value of the static property GLTFLoader2.UseMeshLines.