Merge pull request #75 from dwango/feature/texture_in_editor

Show a thumbnail texture in the editor
This commit is contained in:
ousttrue 2018-12-20 15:40:59 +09:00 committed by GitHub
commit 4e0e916404
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);