{"id":29041847,"url":"https://github.com/udfsoft/glideunity","last_synced_at":"2026-05-18T02:04:27.838Z","repository":{"id":300832673,"uuid":"1007319319","full_name":"UDFSoft/GlideUnity","owner":"UDFSoft","description":"GlideUnity is a lightweight and easy to use wrapper for loading images into Unity","archived":false,"fork":false,"pushed_at":"2025-06-23T20:18:58.000Z","size":13,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-23T21:29:25.367Z","etag":null,"topics":["csharp","glide","image","loader","unity"],"latest_commit_sha":null,"homepage":"https://udfsoft.com","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/UDFSoft.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-23T20:07:17.000Z","updated_at":"2025-06-23T20:29:48.000Z","dependencies_parsed_at":"2025-06-23T21:29:58.037Z","dependency_job_id":"60ed63bc-9063-4590-8870-01308250b078","html_url":"https://github.com/UDFSoft/GlideUnity","commit_stats":null,"previous_names":["udfsoft/glideunity"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/UDFSoft/GlideUnity","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UDFSoft%2FGlideUnity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UDFSoft%2FGlideUnity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UDFSoft%2FGlideUnity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UDFSoft%2FGlideUnity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/UDFSoft","download_url":"https://codeload.github.com/UDFSoft/GlideUnity/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UDFSoft%2FGlideUnity/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274568330,"owners_count":25309281,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-11T02:00:13.660Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["csharp","glide","image","loader","unity"],"created_at":"2025-06-26T15:02:51.279Z","updated_at":"2026-05-18T02:04:22.791Z","avatar_url":"https://github.com/UDFSoft.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GlideUnity\n\n**GlideUnity** is a lightweight and convenient wrapper for loading images in Unity, inspired by [Glide for Android](https://github.com/bumptech/glide). It supports loading from the network, file system, and Resources folder, with memory/disk caching, placeholders, and error handling.\n\n## 🚀 Features\n\n- ✅ Load images from:\n  - Network (`http/https`)\n  - File system (`file://`)\n  - Unity `Resources` folder\n- ✅ Supports Unity UI components:\n  - `RawImage`\n  - `Image` (`Sprite`)\n- ✅ Caching:\n  - In-memory (RAM) with LRU eviction\n  - On disk (`Application.persistentDataPath`)\n- ✅ Placeholders and error images\n- ✅ Custom HTTP headers\n- ✅ Safe handling of `null` and empty paths\n\n---\n\n## 🔧 Installation\n\nCopy the following files into your Unity project:\n\n```\nAssets/Scripts/GlideUnity/\n├── Glide.cs\n├── GlideRequestBuilder.cs\n├── GlideLoader.cs\n├── ImageRequest.cs\n├── ImageSourceType.cs\n├── ImageCache.cs\n```\n\n\n\u003e 📁 Make sure to include `using UnityEngine.UI` where needed to use Unity UI components.\n\n---\n\n## 🧪 Example Usage\n\n```csharp\nGlide.With(this)\n     .Load(\"https://example.com/avatar.png\")\n     .Placeholder(myPlaceholderTexture)\n     .Error(myErrorTexture)\n     .Header(\"Authorization\", \"Bearer xyz\")\n     .Into(myRawImage);\n```\n\nOr for Image (Sprite):\n\n```csharp\nGlide.With(this)\n     .Load(\"https://example.com/icon.png\")\n     .Placeholder(spriteTexture)\n     .Into(myUIImage);\n```\n\n## 📦 Caching\n### 🧠 In-Memory\nLRU cache (default limit: 5 images)\n\nManually clear:\n\n```csharp\nImageCache.ClearMemory();\n```\n\n### 💾 On-Disk\nStored at Application.persistentDataPath/image_cache\n\nNot automatically cleared (by default)\n\nManually clear:\n\n```csharp\nImageCache.ClearDisk();\n```\n\n### 🔐 Safety\nLoad(null) and Load(\"\") are safely handled\n\nIf the path is invalid or loading fails, the placeholder or errorImage is shown (if provided)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fudfsoft%2Fglideunity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fudfsoft%2Fglideunity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fudfsoft%2Fglideunity/lists"}