mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-04-24 06:57:49 -05:00
add null check
This commit is contained in:
parent
c19330b3cf
commit
f6d58fa8b7
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user