StaticimportImports a resource at the specified location, and returns the loaded data. If file contains more than one resource only the primary resource is imported (for example an FBX a mesh would be imported, but animations ignored).
Pathname of the input file.
OptionalimportOptions: Const<ImportOptions>(optional) Options for controlling the import. Caller must ensure import options actually match the type of the importer used for the file type.
Optionaluuid: UUIDSpecific UUID to assign to the resource. If not specified a randomly generated UUID will be assigned.
Imported resource.
StaticimportImports a resource at the specified location, and returns the loaded data. 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).
Pathname of the input file.
OptionalimportOptions: Const<ImportOptions>(optional) Options for controlling the import. Caller must ensure import options actually match the type of the importer used for the file type.
A list of all imported resources. The primary resource is always the first returned resource.
StaticimportSame as ImportAll(), except it imports a resource without blocking the main thread. The returned AsyncOp will contain a list of the imported resources, after the import ends.
OptionalimportOptions: Const<ImportOptions>StaticimportSame as Import(), except it imports a resource without blocking the main thread. The resulting resource will be placed in the returned AsyncOp object when the import ends.
OptionalimportOptions: Const<ImportOptions>Optionaluuid: UUIDStaticpeekPeek into a file to gather information about it.
A object with the best Import Options for that given file and also a cache of the information that has been read.
Staticsupports
Module responsible for importing various asset types and converting them to types usable by the engine.