private void OnIconOverlayGUI(TreeViewItem item, Rect overlayRect) { if (AssetsTreeViewGUI.postAssetIconDrawCallback != null && AssetDatabase.IsMainAsset(item.id)) { string gUIDForInstanceID = AssetsTreeViewGUI.GetGUIDForInstanceID(item.id); AssetsTreeViewGUI.postAssetIconDrawCallback(overlayRect, gUIDForInstanceID); } if (AssetsTreeViewGUI.s_VCEnabled && AssetDatabase.IsMainAsset(item.id)) { string gUIDForInstanceID2 = AssetsTreeViewGUI.GetGUIDForInstanceID(item.id); ProjectHooks.OnProjectWindowItem(gUIDForInstanceID2, overlayRect); } }
private void OnIconOverlayGUI(TreeViewItem item, Rect overlayRect) { if (AssetsTreeViewGUI.postAssetIconDrawCallback != null && AssetDatabase.IsMainAsset(item.id)) { string assetPath = AssetDatabase.GetAssetPath(item.id); string guid = AssetDatabase.AssetPathToGUID(assetPath); AssetsTreeViewGUI.postAssetIconDrawCallback(overlayRect, guid); } if (AssetsTreeViewGUI.s_VCEnabled && AssetDatabase.IsMainAsset(item.id)) { string assetPath2 = AssetDatabase.GetAssetPath(item.id); string guid2 = AssetDatabase.AssetPathToGUID(assetPath2); ProjectHooks.OnProjectWindowItem(guid2, overlayRect); } }