An asynchronous runtime 3D-model importer for Unity
Check out the changelog here.
Import3D supports most common 3D-model formats as it uses Assimp internally.
Imports a scene's node-structure and geometry. Materials and textures are not imported yet.
Import functions are located on the static Import
class.
// using At.Ac.FhStp.Import3D
// Import a single file asynchronously
var importedGameObject = await Import.SingleAsync(filePath);
Some properties of the import process can be configured using
a ImportConfig
object, which can be passed as a second argument
to all import functions. Refer to the ImportConfig
XML-docs to
learn more.
var config = ImportConfig.Default;
_ = await Import.SingleAsync(filePath, config);
Import3D uses the C-library Assimp internally. Because of this, not all target devices are supported out of the box as binaries for these platforms have to built and included in the package.
Currently Import3D supports the following platforms:
- Windows x64
- Android v7 / arm64
Best way to install is via OpenUPM
using openupm add at.ac.fhstp.import3d
.
You can also install manually as a git-dependency from
https://github.com/fhstp/UnityImport3D.git
. Make sure to add
the following scoped-registry if you choose to do so:
{
"name": "package.openupm.com",
"url": "https://package.openupm.com",
"scopes": [
"com.openupm",
"dev.comradevanti.opt-unity",
"dev.comradevanti.rect-constraints",
"org.nuget.comradevanti.csharptools.opt",
"org.nuget.dev.comradevanti.nothing",
"org.nuget.system.buffers",
"org.nuget.system.collections.immutable",
"org.nuget.system.memory",
"org.nuget.system.numerics.vectors",
"org.nuget.system.runtime.compilerservices.unsafe"
]
}
- Texture import
- Better error-handling
- Optimizations
- More build targets
Developed for/with Unity 2021.3