load quick VRM.Meta information
var bytes = File.ReadAllBytes(file);
VRMMetaObject meta;
using(var metaLoader = new VRM.QuickMetaLoader.MetaLoader(bytes, false))
{
meta = metaLoader.Read();
}
And, you got VRMMetaObject with thumbnail.
var bytes = File.ReadAllBytes(file);
using(var metaLoader = new VRM.QuickMetaLoader.MetaLoader(bytes))
{
VRMMetaObject meta = metaLoader.Read();
// some process...
Texture2D thumbnail = metaLoader.LoadThumbnail();
}
You can also use AsyncReadManager Read.
using(var metaLoader = new JobMetaLoader(file, preloadThumbnail: true))
{
VRMMetaObject meta = metaLoader.Read();
// some process...
meta.Thumbnail = metaLoader.LoadThumbnail();
}
MIT License
Go GitHub Release page and get .unitypackage
- UniVRM 0.53.0 : https://github.com/vrm-c/UniVRM/releases
- VRMLoaderUI : https://github.com/m2wasabi/VRMLoaderUI