Skip to content
forked from yutopp/VGltf

A glTF 2.0 importer/exporter library written in pure C# with support for use in Unity

License

Notifications You must be signed in to change notification settings

paldynojosh/VGltf

 
 

Repository files navigation

VGltf 🗿

ci NuGet Badge codecov license gltf-2.0 unity

layer

VGltf is a library importing/exporting glTF 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.

Description for Unity users

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)

Installation

For standard C# projects

You can use Nuget/VGltf.

dotnet add package VGltf

For Unity projects

By using git

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.

By using npm repository

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": "*"
  }
}

Dependencies

Usage examples

See Assets/VGltfExamples.

TODO

  • Performance tuning

License

Boost Software License - Version 1.0

References

Author

About

A glTF 2.0 importer/exporter library written in pure C# with support for use in Unity

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 93.5%
  • ShaderLab 3.5%
  • HLSL 2.5%
  • Makefile 0.5%