Skip to content

Commit

Permalink
Merge pull request #807 from ousttrue/fix/readmeta
Browse files Browse the repository at this point in the history
ReadMeta 復活
  • Loading branch information
PoChang007 authored Mar 22, 2021
2 parents 87bc060 + 2528f8a commit b6cc226
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Assets/VRM/Runtime/IO/VRMImporterContextExtensions.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
namespace VRM
{
public static class VRMImporterContextExtensions
{
public static VRMMetaObject ReadMeta(this VRMImporterContext context, bool createThumbnail = false)
{
var task = context.ReadMetaAsync(default(UniGLTF.ImmediateCaller), createThumbnail);
task.Wait();
return task.Result;
}
}
}
11 changes: 11 additions & 0 deletions Assets/VRM/Runtime/IO/VRMImporterContextExtensions.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b6cc226

Please sign in to comment.