AbstractProtectedconstructorOptionalisInternalConstructor: booleanProtected AbstractonVirtualCreates import options specific for this importer. Import options are provided when calling onImport to customize the import, and provide additional information.
VirtualImports the given file. If file contains more than one resource only the primary resource is imported (for example for an FBX a mesh would be imported, but animations ignored).
The data of the source file to import from.
Pathname of the file, with file extension.
The operation progress.
Options that can control how is the resource imported.
Optional import information cache in case the file was peeked before importing.
A resource import result containing the resource or an error message.
VirtualImports the given file. This method returns all imported resources, which is relevant for files that can contain multiple resources (for example an FBX which may contain both a mesh and animations).
The data of the source file to import from.
Pathname of the file, with file extension.
The operation progress.
Options that can control how are the resources imported.
OptionalfilePeekInformation: ImportFileInformationOptional import information cache in case the file was peeked before importing.
An array of imported resource, that might be successful of have failed. First element is always the primary resource.
Allows implementing resource importes from TypeScript code.