diff --git a/Assets/VRM10/Runtime/Components/VRM10Object/VRM10ObjectFirstPerson.cs b/Assets/VRM10/Runtime/Components/VRM10Object/VRM10ObjectFirstPerson.cs index fdd71522c..ad7bcc8ab 100644 --- a/Assets/VRM10/Runtime/Components/VRM10Object/VRM10ObjectFirstPerson.cs +++ b/Assets/VRM10/Runtime/Components/VRM10Object/VRM10ObjectFirstPerson.cs @@ -155,8 +155,17 @@ namespace UniVRM10 var runtime = go.GetComponent(); var firstPersonBone = go.GetComponent().GetBoneTransform(HumanBodyBones.Head); + + var used = new HashSet(); foreach (var x in Renderers) { + if (!used.Add(x.Renderer)) + { + // 同じ対象が複数回現れた + Debug.LogWarning($"VRM10ObjectFirstPerson.SetupAsync: duplicated {x.Renderer}"); + continue; + } + if (isSelf) { await SetupSelfRendererAsync(go, runtime, firstPersonBone, x, layer, awaitCaller);