{"id":26654842,"url":"https://github.com/blacksentrydevxo/unity-ui-badge-notification-system","last_synced_at":"2026-04-28T20:36:04.985Z","repository":{"id":284044779,"uuid":"953645513","full_name":"BlackSentryDevXo/Unity-UI-Badge-Notification-System","owner":"BlackSentryDevXo","description":"A simple badge notification system for your unity game to help bring player's attention to certain key parts of your UI and notify players without popups.","archived":false,"fork":false,"pushed_at":"2025-03-23T21:21:40.000Z","size":1485,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-23T21:28:03.078Z","etag":null,"topics":["unity-scripts","unity-ui-toolkit","unity3d-plugin"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BlackSentryDevXo.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}},"created_at":"2025-03-23T20:27:37.000Z","updated_at":"2025-03-23T21:21:44.000Z","dependencies_parsed_at":"2025-03-23T21:39:17.507Z","dependency_job_id":null,"html_url":"https://github.com/BlackSentryDevXo/Unity-UI-Badge-Notification-System","commit_stats":null,"previous_names":["blacksentrydevxo/unity-ui-badge-notification-system"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlackSentryDevXo%2FUnity-UI-Badge-Notification-System","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlackSentryDevXo%2FUnity-UI-Badge-Notification-System/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlackSentryDevXo%2FUnity-UI-Badge-Notification-System/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlackSentryDevXo%2FUnity-UI-Badge-Notification-System/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BlackSentryDevXo","download_url":"https://codeload.github.com/BlackSentryDevXo/Unity-UI-Badge-Notification-System/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245407754,"owners_count":20610232,"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","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":["unity-scripts","unity-ui-toolkit","unity3d-plugin"],"created_at":"2025-03-25T05:44:40.218Z","updated_at":"2026-04-28T20:36:04.925Z","avatar_url":"https://github.com/BlackSentryDevXo.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🎯 Badge Notification System\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/user-attachments/assets/71acaa84-0270-47c3-9cee-5233cb5694ae\" width=\"25%\"\u003e\n  \u003cimg src=\"https://github.com/user-attachments/assets/64fecf32-e957-477e-94c9-844a3bd10c8e\" width=\"35%\"\u003e\n\u003c/p\u003e\n\nThis system adds **badge notifications** to UI elements in Unity, showing numbers or symbols to indicate updates.\n\n## 🛠️ Setup Instructions\n\n### 1️⃣ Add the `BadgeManager`\n1. Create an **empty GameObject** in your scene.\n2. Attach the **`BadgeManager`** script to it.\n3. You can also drag and drop the badmanager prefab from the `BadgeNotificationSystem` folder into the scene.\n\n### 2️⃣ Attach `BadgeComponent` to Button UI Elements\n1. Add the **`BadgeComponent`** script to any UI element (e.g., buttons).\n2. Set the **`BadgeID`** to match the badge type (Shop, Quests, Inbox, etc.).\n3. Assign a **symbol image** to the image variable.\n\n### 3️⃣ Initialize Badges in `BadgeMappingInitializer`\n1. Attach **`BadgeMappingInitializer`** to a GameObject in the scene.\n2. Configure **child mappings** in the Inspector.\n3. The system will initialize badges and propagate changes automatically.\n\n### 4️⃣ Trigger a Badge Update\nTo set a badge (e.g., shop):\n```csharp\nBadgeManager.Instance.SetBadge(BadgeID.Shop);\n````\nTo clear a badge (e.g., remove badge on shop):\n```csharp\nBadgeManager.Instance.ClearBadge(BadgeID.Shop);\n```\n\nYou can customize the system to support numerical notifications as well by modifying the BadgeType enum to include more types of badges. \n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/user-attachments/assets/541b6406-08c3-4588-bc46-a03a2441a311\" width=\"30%\"\u003e\n  \u003cimg src=\"https://github.com/user-attachments/assets/9016fdb1-5ed3-44e2-a1f4-7192a02763b1\" width=\"30%\"\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblacksentrydevxo%2Funity-ui-badge-notification-system","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblacksentrydevxo%2Funity-ui-badge-notification-system","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblacksentrydevxo%2Funity-ui-badge-notification-system/lists"}