Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,13 @@ private Texture2D GetAssetPreview(SerializedProperty property)
if (property.objectReferenceValue != null)
{
Texture2D previewTexture = AssetPreview.GetAssetPreview(property.objectReferenceValue);

if (previewTexture == null && property.objectReferenceValue is Component)
{
var gameObject = (property.objectReferenceValue as Component).gameObject;
previewTexture = AssetPreview.GetAssetPreview(gameObject);
}

return previewTexture;
}

Expand Down