private static void DrawProjectItem(Rect rect, string path, SingletonAssetCache.AssetMetadata meta) { var projectItemLabelContent = new GUIContent(Path.GetFileNameWithoutExtension(path)); var linkedIconRect = IMGUIUtility.CalculateRectAfterLabelText(rect, projectItemLabelContent, true); var linkedIcon = GetGuiContent(meta.IsInLoadablePath, meta.ResourcesPath); GUI.Label(linkedIconRect, linkedIcon, IconLabelStyle); }
private static void OnProjectWindowItemGUI(string guid, Rect r) { try { var path = AssetDatabase.GUIDToAssetPath(guid); if (string.IsNullOrEmpty(path)) { return; } var attributes = File.GetAttributes(path); var nr = IMGUIUtility.CalculateRectAfterLabelText(r, path, true); if ((attributes & FolderSymlinkAttributes) == FolderSymlinkAttributes) { GUI.Label(nr, SymlinkLabelText, SymlinkMarkerStyle); } } catch (Exception e) { Debug.LogException(e); } }