mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-05-11 04:54:17 -05:00
Fix VRMImporter.LoadVRMAsync methods for newer runtimes
This commit is contained in:
parent
c8d45a8eed
commit
6a92daa09e
|
|
@ -468,8 +468,8 @@ namespace VRM
|
|||
|
||||
public static Task<GameObject> LoadVrmAsync(string path, bool show=true)
|
||||
{
|
||||
var context = new VRMImporterContext(path);
|
||||
context.ParseVrm(File.ReadAllBytes(path));
|
||||
var context = new VRMImporterContext(UnityPath.FromFullpath(path));
|
||||
context.ParseGlb(File.ReadAllBytes(path));
|
||||
return LoadVrmAsyncInternal(context, show).ToTask();
|
||||
}
|
||||
|
||||
|
|
@ -477,7 +477,7 @@ namespace VRM
|
|||
public static Task<GameObject> LoadVrmAsync(Byte[] bytes, bool show=true)
|
||||
{
|
||||
var context = new VRMImporterContext();
|
||||
context.ParseVrm(bytes);
|
||||
context.ParseGlb(bytes);
|
||||
return LoadVrmAsync(context, show);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user