Skip to content

m2wasabi/VRMQuickMetaLoader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VRMQuickMetaLoader

load quick VRM.Meta information

Demo

Usage

Just Simple.

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.

Thumbnail on your hands

var bytes = File.ReadAllBytes(file);
using(var metaLoader = new VRM.QuickMetaLoader.MetaLoader(bytes))
{
	VRMMetaObject meta = metaLoader.Read();

	// some process...

	Texture2D thumbnail = metaLoader.LoadThumbnail();
}

Job Read

You can also use AsyncReadManager Read.

using(var metaLoader = new JobMetaLoader(file, preloadThumbnail: true))
{
	VRMMetaObject meta = metaLoader.Read();

	// some process...

	meta.Thumbnail =  metaLoader.LoadThumbnail();
}

License

MIT License

Download

Go GitHub Release page and get .unitypackage

Dependencies

Also recommended