{"id":17754659,"url":"https://github.com/catcodegames/alphamodifiers","last_synced_at":"2026-01-22T05:34:18.577Z","repository":{"id":258067546,"uuid":"863531480","full_name":"CatCodeGames/AlphaModifiers","owner":"CatCodeGames","description":"Alpha channel management for Unity objects with hierarchy support","archived":false,"fork":false,"pushed_at":"2024-10-18T02:40:20.000Z","size":1360,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-20T14:04:25.148Z","etag":null,"topics":["csharp","unity","unity-package","unity3d"],"latest_commit_sha":null,"homepage":"","language":"ShaderLab","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CatCodeGames.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-09-26T13:06:34.000Z","updated_at":"2024-10-18T02:40:24.000Z","dependencies_parsed_at":"2024-10-17T14:32:33.881Z","dependency_job_id":"49520f14-1305-4bff-88ab-26338e92720c","html_url":"https://github.com/CatCodeGames/AlphaModifiers","commit_stats":null,"previous_names":["catcodegames/alphamodifiers"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CatCodeGames%2FAlphaModifiers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CatCodeGames%2FAlphaModifiers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CatCodeGames%2FAlphaModifiers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CatCodeGames%2FAlphaModifiers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CatCodeGames","download_url":"https://codeload.github.com/CatCodeGames/AlphaModifiers/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246691470,"owners_count":20818521,"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":["csharp","unity","unity-package","unity3d"],"created_at":"2024-10-26T14:07:55.719Z","updated_at":"2026-01-22T05:34:18.537Z","avatar_url":"https://github.com/CatCodeGames.png","language":"ShaderLab","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 1 Description\n`MonoAlphaModifier` lets you control the transparency of various objects, including sprites and particle systems. Its logic is similar to Unity's `CanvasGroup`: it allows you to adjust the alpha value for a group of objects simultaneously, simplifying the management of visual effects.\n\n- Controls the transparency of multiple objects within the `MonoAlphaModifier`.\n- Supports nested objects with `MonoAlphaModifier` and combines their alpha values for child objects.\n\n# 2 How to Use\n## 2.1 UnityEditor\nAdd the MonoAlphaModifier component to an object.\n\nChoose one of the two options in the component's context menu:\n\n`Alpha for this Object` - controls the transparency only for the current object.\n\n`Alpha for this Branch` - controls the transparency for the current object and all its child objects.\n\n## 2.2 Scripts\nTo control transparency, use the `Alpha` property of the `MonoAlphaModifier` component.\n\nTo add a new `MonoAlphaModifier` object to the existing hierarchy at runtime, use the methods `FindParent()` or `SetParent(MonoAlphaModifier parent)`.\n\nTo remove an object from the hierarchy, use the `RemoveParent()` method.\n\n\n# 1. Описание\nMonoAlphaModifier позволяет контролировать прозрачность различных объектов, включая спрайты и системы частиц. Его логика схожа с `CanvasGroup` в Unity: он позволяет изменять альфа-значение для группы объектов одновременно, что упрощает управление визуальными эффектами.\n\n- Позволяет управлять прозрачностью сразу нескольких объектов, которые находятся внутри `MonoAlphaModifier`.\n- Поддерживает вложенные объекты с `MonoAlphaModifier` и комбинирует их альфа-значения для дочерних объектов.\n\n# 2. Как использовать.\n## 2.1 UnityEditor\n\n1. Добавить компонент `MonoAlphaModifier` на объект\n2. Выбрать одну из двух опций в контекстном меню компонента\n2.1 `Alpha for this Object` - компонент будет контролировать прозрачность только для текущего объекта, к которому прикреплён\n2.2 `Alpha for this Branch` - компонент будет контролировать прозрачность для текущего и всех дочерних объектов.\n\n## 2.2 Scripts\n\nДля управления прозрачностью используйте свойство `Alpha` компонента `MonoAlphaModifier`.\n\nЕсли во время выполнения необходимо добавить новый объект `MonoAlphaModifier` в существующую иерархию, используйте методы `FindParent()` или `SetParent(MonoAlphaModifier parent)`.\n\nДля удаления объекта из иерархии используйте метод `RemoveParent()`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcatcodegames%2Falphamodifiers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcatcodegames%2Falphamodifiers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcatcodegames%2Falphamodifiers/lists"}