// Token: 0x060001A7 RID: 423 RVA: 0x0000C708 File Offset: 0x0000A908 protected override void OnDrawItem(GUIListViewDrawItemArgs args) { FindAssetUsage.AssetProxy assetProxy = args.Model as FindAssetUsage.AssetProxy; if (assetProxy == null) { return; } if (args.Column.IsPrimaryColumn) { Texture texture = null; if (assetProxy.Asset != null) { texture = AssetPreview.GetMiniTypeThumbnail(assetProxy.Asset.GetType()); } else if (assetProxy.AssetType != null) { texture = AssetPreview.GetMiniTypeThumbnail(assetProxy.AssetType); } else if (!string.IsNullOrEmpty(assetProxy.AssetPath)) { texture = AssetPreview.GetMiniTypeThumbnail(AssetDatabase2.GetAssetType(assetProxy.AssetPath)); } if (texture == null) { texture = AssetPreview.GetMiniTypeThumbnail(typeof(TextAsset)); } GUIListView.DrawItemImageHelper(ref args.ItemRect, texture, new Vector2(16f, 16f)); } args.ItemRect.y = args.ItemRect.y + 3f; args.ItemRect.height = args.ItemRect.height - 3f; FindAssetUsageWindow.Listbox.Column column = args.Column as FindAssetUsageWindow.Listbox.Column; column.DrawFunc(assetProxy, args); }
// Token: 0x060000E7 RID: 231 RVA: 0x00008BA0 File Offset: 0x00006DA0 public static bool IsAssetType(string assetPath, Type type) { return(AssetDatabase2.GetAssetType(assetPath) == type); }