From fe09c4e5cdbfb7b7f992759e286e2fd8332639f2 Mon Sep 17 00:00:00 2001 From: yutopp Date: Thu, 20 Dec 2018 14:27:07 +0900 Subject: [PATCH] Show a thumbnail texture in the editor --- Scripts/Meta/Editor/VRMMetaEditor.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Scripts/Meta/Editor/VRMMetaEditor.cs b/Scripts/Meta/Editor/VRMMetaEditor.cs index 6e90bb5db..fe86e8667 100644 --- a/Scripts/Meta/Editor/VRMMetaEditor.cs +++ b/Scripts/Meta/Editor/VRMMetaEditor.cs @@ -95,8 +95,10 @@ namespace VRM EditorGUILayout.PropertyField(m_propMap["Author"]); EditorGUILayout.PropertyField(m_propMap["ContactInformation"]); EditorGUILayout.PropertyField(m_propMap["Reference"]); - //var thumbnail = m_propMap["Thumbnail"]; - //thumbnail.objectReferenceValue = TextureField("", (Texture2D)thumbnail.objectReferenceValue, 100); + + var thumbnail = m_propMap["Thumbnail"]; + EditorGUILayout.PropertyField(thumbnail); + thumbnail.objectReferenceValue = TextureField("", (Texture2D)thumbnail.objectReferenceValue, 100); } EditorGUILayout.LabelField("License ", EditorStyles.boldLabel);