From bb1c3d4cc1ed965ae4c3c8229ce04070451b0911 Mon Sep 17 00:00:00 2001 From: Masataka SUMI Date: Fri, 4 Feb 2022 17:12:03 +0900 Subject: [PATCH] fix comments --- Assets/VRM10/Runtime/IO/Vrm10Utility.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Assets/VRM10/Runtime/IO/Vrm10Utility.cs b/Assets/VRM10/Runtime/IO/Vrm10Utility.cs index 9f86ab2d3..12e5916a8 100644 --- a/Assets/VRM10/Runtime/IO/Vrm10Utility.cs +++ b/Assets/VRM10/Runtime/IO/Vrm10Utility.cs @@ -1,4 +1,5 @@ -using System.Threading.Tasks; +using System.Threading; +using System.Threading.Tasks; using UniGLTF; using UnityEngine; using VRMShaders; @@ -27,9 +28,9 @@ namespace UniVRM10 MetaCallback metaCallback = null ) { - // 1st parse as vrm1 using (var data = new GlbLowLevelParser(path, bytes).Parse()) { + // 1. Try parsing as vrm-1.0 var vrm1Data = Vrm10Data.Parse(data); if (vrm1Data != null) { @@ -51,7 +52,7 @@ namespace UniVRM10 return default; } - // try migration... + // 2. Try migration from vrm-0.x into vrm-1.0 MigrationData migration; using (var migrated = Vrm10Data.Migrate(data, out vrm1Data, out migration)) { @@ -71,7 +72,7 @@ namespace UniVRM10 } } - // fail to migrate... + // 3. failed if (migration != null) { Debug.LogWarning(migration.Message);