diff --git a/Assets/VRM10.Samples/Runtime/ViewerUI.cs b/Assets/VRM10.Samples/Runtime/ViewerUI.cs index 27ef876a5..7847b2df6 100644 --- a/Assets/VRM10.Samples/Runtime/ViewerUI.cs +++ b/Assets/VRM10.Samples/Runtime/ViewerUI.cs @@ -95,8 +95,10 @@ namespace UniVRM10.Samples m_textModelVersion.text = meta.Version; m_textModelAuthor.text = meta.Authors[0]; m_textModelContact.text = meta.ContactInformation; - m_textModelReference.text = meta.References[0]; - + if (meta.References != null && meta.References.Count > 0) + { + m_textModelReference.text = meta.References[0]; + } m_textPermissionAllowed.text = meta.AllowedUser.ToString(); m_textPermissionViolent.text = meta.ViolentUsage.ToString(); m_textPermissionSexual.text = meta.SexualUsage.ToString();