From b8f7177cb8dbadf71890ef6b3be86e38af366b05 Mon Sep 17 00:00:00 2001 From: Isamu Mogi Date: Fri, 7 Jun 2019 00:23:52 +0900 Subject: [PATCH] Fix typo (comments) --- Assets/VRM/UniGLTF/Scripts/IO/ImporterContext.cs | 4 ++-- Assets/VRM/UniGLTF/Scripts/IO/MaterialImporter.cs | 4 ++-- Assets/VRM/UniGLTF/Scripts/IO/MeshExporter.cs | 2 +- Assets/VRM/UniGLTF/Scripts/IO/NodeImporter.cs | 4 ++-- Assets/VRM/UniHumanoid/Scripts/IO/BvhImporterContext.cs | 2 +- Assets/VRM/UniHumanoid/Scripts/MuscleDebug.cs | 2 +- Assets/VRM/UniJSON/Scripts/ListTreeNode/ListTreeNode.cs | 2 +- Assets/VRM/UniJSON/Scripts/Utf8String/Utf8StringExtensions.cs | 2 +- Assets/VRM/UniUnlit/Scripts/Utils.cs | 4 ++-- .../UniVRM/Scripts/FirstPerson/VRMFirstPersonCameraManager.cs | 2 +- Assets/VRM/UniVRM/Scripts/Format/VRMExporter.cs | 2 +- Assets/VRM/UniVRM/Scripts/SpringBone/VRMSpringBone.cs | 2 +- 12 files changed, 16 insertions(+), 16 deletions(-) diff --git a/Assets/VRM/UniGLTF/Scripts/IO/ImporterContext.cs b/Assets/VRM/UniGLTF/Scripts/IO/ImporterContext.cs index a973cbc41..964dcf931 100644 --- a/Assets/VRM/UniGLTF/Scripts/IO/ImporterContext.cs +++ b/Assets/VRM/UniGLTF/Scripts/IO/ImporterContext.cs @@ -887,7 +887,7 @@ namespace UniGLTF } } - // Create or upate Main Asset + // Create or update Main Asset if (prefabPath.IsFileExists) { Debug.LogFormat("replace prefab: {0}", prefabPath); @@ -1012,7 +1012,7 @@ namespace UniGLTF } /// - /// Destroy assets that created ImporterContext. This function is clean up for imoprter error. + /// Destroy assets that created ImporterContext. This function is clean up for importer error. /// public void EditorDestroyRootAndAssets() { diff --git a/Assets/VRM/UniGLTF/Scripts/IO/MaterialImporter.cs b/Assets/VRM/UniGLTF/Scripts/IO/MaterialImporter.cs index 31db25670..7ee5008d4 100644 --- a/Assets/VRM/UniGLTF/Scripts/IO/MaterialImporter.cs +++ b/Assets/VRM/UniGLTF/Scripts/IO/MaterialImporter.cs @@ -37,7 +37,7 @@ namespace UniGLTF Transparent } - /// StandardShader vaiables + /// StandardShader variables /// /// _Color /// _MainTex @@ -70,7 +70,7 @@ namespace UniGLTF //Debug.LogFormat("[{0}]{1}", i, shader.name); var material = new Material(shader); #if UNITY_EDITOR - // textureImporter.SaveAndReimport(); may destory this material + // textureImporter.SaveAndReimport(); may destroy this material material.hideFlags = HideFlags.DontUnloadUnusedAsset; #endif diff --git a/Assets/VRM/UniGLTF/Scripts/IO/MeshExporter.cs b/Assets/VRM/UniGLTF/Scripts/IO/MeshExporter.cs index 56d9a326c..8ec4faf3b 100644 --- a/Assets/VRM/UniGLTF/Scripts/IO/MeshExporter.cs +++ b/Assets/VRM/UniGLTF/Scripts/IO/MeshExporter.cs @@ -81,7 +81,7 @@ namespace UniGLTF { attributes = attributes, indices = indicesAccessorIndex, - mode = 4, // triangels ? + mode = 4, // triangles ? material = unityMaterials.IndexOf(materials[j]) }); } diff --git a/Assets/VRM/UniGLTF/Scripts/IO/NodeImporter.cs b/Assets/VRM/UniGLTF/Scripts/IO/NodeImporter.cs index d84e6b4d4..7b8b245b6 100644 --- a/Assets/VRM/UniGLTF/Scripts/IO/NodeImporter.cs +++ b/Assets/VRM/UniGLTF/Scripts/IO/NodeImporter.cs @@ -74,7 +74,7 @@ namespace UniGLTF }; // - // build hierachy + // build hierarchy // var node = context.GLTF.nodes[i]; if (node.children != null) @@ -164,7 +164,7 @@ namespace UniGLTF if (x.SkinIndex.Value < context.GLTF.skins.Count) { - // calculate internal values(boudingBox etc...) when sharedMesh assinged ? + // calculate internal values(boundingBox etc...) when sharedMesh assigned ? skinnedMeshRenderer.sharedMesh = null; var skin = context.GLTF.skins[x.SkinIndex.Value]; diff --git a/Assets/VRM/UniHumanoid/Scripts/IO/BvhImporterContext.cs b/Assets/VRM/UniHumanoid/Scripts/IO/BvhImporterContext.cs index c53955f26..9bab1d45b 100644 --- a/Assets/VRM/UniHumanoid/Scripts/IO/BvhImporterContext.cs +++ b/Assets/VRM/UniHumanoid/Scripts/IO/BvhImporterContext.cs @@ -212,7 +212,7 @@ namespace UniHumanoid AssetDatabase.AddObjectToAsset(o, path); } - // Create or upate Main Asset + // Create or update Main Asset if (File.Exists(path)) { Debug.LogFormat("replace prefab: {0}", path); diff --git a/Assets/VRM/UniHumanoid/Scripts/MuscleDebug.cs b/Assets/VRM/UniHumanoid/Scripts/MuscleDebug.cs index d06603b4b..b03b9dd25 100644 --- a/Assets/VRM/UniHumanoid/Scripts/MuscleDebug.cs +++ b/Assets/VRM/UniHumanoid/Scripts/MuscleDebug.cs @@ -93,7 +93,7 @@ namespace UniHumanoid var nameProp = property.FindPropertyRelative("Name"); var valueProp = property.FindPropertyRelative("Value"); /* - var labl = string.Format("{0}: {1}", + var label = string.Format("{0}: {1}", nameProp.stringValue, valueProp.floatValue ); diff --git a/Assets/VRM/UniJSON/Scripts/ListTreeNode/ListTreeNode.cs b/Assets/VRM/UniJSON/Scripts/ListTreeNode/ListTreeNode.cs index c3cc147ab..c32160382 100644 --- a/Assets/VRM/UniJSON/Scripts/ListTreeNode/ListTreeNode.cs +++ b/Assets/VRM/UniJSON/Scripts/ListTreeNode/ListTreeNode.cs @@ -247,7 +247,7 @@ namespace UniJSON foreach (var kv in r) { - // Addded + // Added yield return JsonDiff.Create(kv.Value, JsonDiffType.KeyAdded, kv.Value.Value.ToString()); } } diff --git a/Assets/VRM/UniJSON/Scripts/Utf8String/Utf8StringExtensions.cs b/Assets/VRM/UniJSON/Scripts/Utf8String/Utf8StringExtensions.cs index b5f4ecf05..3372b703c 100644 --- a/Assets/VRM/UniJSON/Scripts/Utf8String/Utf8StringExtensions.cs +++ b/Assets/VRM/UniJSON/Scripts/Utf8String/Utf8StringExtensions.cs @@ -73,7 +73,7 @@ namespace UniJSON break; default: - // unkonw escape + // unknown escape throw new ParserException("unknown escape: " + p.Second); } } diff --git a/Assets/VRM/UniUnlit/Scripts/Utils.cs b/Assets/VRM/UniUnlit/Scripts/Utils.cs index 3c5bc843a..2709aa6b4 100644 --- a/Assets/VRM/UniUnlit/Scripts/Utils.cs +++ b/Assets/VRM/UniUnlit/Scripts/Utils.cs @@ -68,8 +68,8 @@ namespace UniGLTF.UniUnlit /// /// Validate target material's UniUnlitRenderMode, UniUnlitVertexColorBlendOp. - /// Set appropriate hidden properites & keywords. - /// This will change RenderQueue independent to UniUnlitRenderMode if isRenderModeChagedByUser is true. + /// Set appropriate hidden properties & keywords. + /// This will change RenderQueue independent to UniUnlitRenderMode if isRenderModeChangedByUser is true. /// /// Target material /// Is changed by user diff --git a/Assets/VRM/UniVRM/Scripts/FirstPerson/VRMFirstPersonCameraManager.cs b/Assets/VRM/UniVRM/Scripts/FirstPerson/VRMFirstPersonCameraManager.cs index 9b69985c9..dda06faa7 100644 --- a/Assets/VRM/UniVRM/Scripts/FirstPerson/VRMFirstPersonCameraManager.cs +++ b/Assets/VRM/UniVRM/Scripts/FirstPerson/VRMFirstPersonCameraManager.cs @@ -9,7 +9,7 @@ namespace VRM /// /// ファーストパーソン向けLayer検討 /// - /// * Deault LayerをFirstPersonレイヤーとして使う + /// * Default LayerをFirstPersonレイヤーとして使う /// * 9番にThirdPerson Layerを追加する /// /// * FirstPersonCameraはCullingMaskでThirdPerson Layerを除外 diff --git a/Assets/VRM/UniVRM/Scripts/Format/VRMExporter.cs b/Assets/VRM/UniVRM/Scripts/Format/VRMExporter.cs index a77ad917f..a72d0cf6f 100644 --- a/Assets/VRM/UniVRM/Scripts/Format/VRMExporter.cs +++ b/Assets/VRM/UniVRM/Scripts/Format/VRMExporter.cs @@ -144,7 +144,7 @@ namespace VRM gltf.extensions.VRM.meta.texture = TextureIO.ExportTexture(gltf, gltf.buffers.Count - 1, meta.Thumbnail, glTFTextureTypes.Unknown); } - // ussage pemission + // ussage permission gltf.extensions.VRM.meta.allowedUser = meta.AllowedUser; gltf.extensions.VRM.meta.violentUssage = meta.ViolentUssage; gltf.extensions.VRM.meta.sexualUssage = meta.SexualUssage; diff --git a/Assets/VRM/UniVRM/Scripts/SpringBone/VRMSpringBone.cs b/Assets/VRM/UniVRM/Scripts/SpringBone/VRMSpringBone.cs index 8a5c0100e..37a66c3ab 100644 --- a/Assets/VRM/UniVRM/Scripts/SpringBone/VRMSpringBone.cs +++ b/Assets/VRM/UniVRM/Scripts/SpringBone/VRMSpringBone.cs @@ -7,7 +7,7 @@ namespace VRM { /// /// The base algorithm is http://rocketjump.skr.jp/unity3d/109/ of @ricopin416 - /// DefaultExecutionOrder(11000) means calclate springbone after FinaiIK( VRIK ) + /// DefaultExecutionOrder(11000) means calculate springbone after FinalIK( VRIK ) /// #if UNITY_5_5_OR_NEWER [DefaultExecutionOrder(11000)]