VGltf
is a library importing/exportingglTF 2.0
assets aiming for extensibility, readability, and stability.
Supported .NET versions are .NET Standard 2.0
or higher.
The following glTF extensions are also supported as independent libraries.
Supported Unity versions are Unity 2019.4
or higher.
As for importing and exporting resources, you can use it in the following situations.
- Runtime import
- Runtime export
- Editor import
- Editor export
We have checked that VGltf runs on these platforms.
- Windows (Mono, IL2CPP)
- Linux (Mono, IL2CPP)
- MacOS (Intel and ARM) (Mono, IL2CPP)
- iOS
- Android
- WebGL
- (this is a sample project for WebGL with Unity 2022.1)
You can use Nuget/VGltf.
dotnet add package VGltf
Add a url for VGltf git repository to your Packages/manifest.json
like below.
{
"dependencies": {
"net.yutopp.vgltf": "https://github.com/yutopp/VGltf.git?path=Packages/net.yutopp.vgltf",
"net.yutopp.vgltf.unity": "https://github.com/yutopp/VGltf.git?path=Packages/net.yutopp.vgltf.unity"
}
}
We recommend to use the stable version by specifying the tag.
Add scoped registry information shown below to your Packages/manifest.json
if not exists.
{
"scopedRegistries": [
{
"name": "yutopp.net",
"url": "https://registry.npmjs.com",
"scopes": [
"net.yutopp"
]
}
]
}
And add net.yutopp.vgltf.*
to your Packages/manifest.json
like below.
{
"dependencies": {
"net.yutopp.vgltf": "*",
"net.yutopp.vgltf.unity": "*"
}
}
See Assets/VGltfExamples.
- Performance tuning