mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-09-08 11:59:26 -05:00
@@ -164,16 +164,15 @@ namespace VRM.Samples
|
||||
}
|
||||
|
||||
|
||||
void LoadAsync(VRMImporterContext context)
|
||||
async void LoadAsync(VRMImporterContext context)
|
||||
{
|
||||
#if true
|
||||
var now = Time.time;
|
||||
context.LoadAsync(() =>
|
||||
{
|
||||
var delta = Time.time - now;
|
||||
Debug.LogFormat("LoadAsync {0:0.0} seconds", delta);
|
||||
OnLoaded(context);
|
||||
});
|
||||
await context.LoadAsync();
|
||||
|
||||
var delta = Time.time - now;
|
||||
Debug.LogFormat("LoadAsync {0:0.0} seconds", delta);
|
||||
OnLoaded(context);
|
||||
#else
|
||||
// ローカルファイルシステムからロードします
|
||||
VRMImporter.LoadVrmAsync(path, OnLoaded);
|
||||
|
||||
Reference in New Issue
Block a user