{"id":16209185,"url":"https://github.com/gilzoide/unity-conditional-objects","last_synced_at":"2025-07-18T03:07:21.290Z","repository":{"id":70590832,"uuid":"541152386","full_name":"gilzoide/unity-conditional-objects","owner":"gilzoide","description":"Unity scripts that modify GameObjects and Components at Prefab/Scene import time based on build configurations","archived":false,"fork":false,"pushed_at":"2025-01-17T20:35:02.000Z","size":138,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-28T16:58:53.506Z","etag":null,"topics":["conditional","importer","prefab","scene","unity","unity-package","unity3d","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":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gilzoide.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":["gilzoide"],"patreon":null,"open_collective":null,"ko_fi":"gilzoide","tidelift":null,"community_bridge":null,"liberapay":"gilzoide","issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2022-09-25T11:45:29.000Z","updated_at":"2025-01-17T20:35:03.000Z","dependencies_parsed_at":"2024-10-27T20:25:52.254Z","dependency_job_id":"40f422a3-1b2d-4356-b5f2-aa8691f7ba41","html_url":"https://github.com/gilzoide/unity-conditional-objects","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gilzoide%2Funity-conditional-objects","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gilzoide%2Funity-conditional-objects/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gilzoide%2Funity-conditional-objects/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gilzoide%2Funity-conditional-objects/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gilzoide","download_url":"https://codeload.github.com/gilzoide/unity-conditional-objects/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243976478,"owners_count":20377691,"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":["conditional","importer","prefab","scene","unity","unity-package","unity3d","unity3d-plugin"],"created_at":"2024-10-10T10:28:25.863Z","updated_at":"2025-03-19T08:31:01.117Z","avatar_url":"https://github.com/gilzoide.png","language":"C#","readme":"# Conditional Objects\nScripts that modify `GameObject`s and `Component`s at Prefab/Scene import time, based on build configurations.\nAll processing is done in the editor at import/build time, so there's no runtime penalty in built players.\n\n\n## Features\n- Supported conditions:\n  + Editor vs Built player\n  + Development vs Release build settings\n  + Scripting define symbols\n  + Active build platform\n- Conditionally modify `GameObject` or `Component` properties with the [PropertyModifier](Runtime/PropertyModifier.cs) script (e.g.: setting different controller sprites between PlayStation and Xbox platforms)\n- Conditionally keep `GameObject`s or `Component`s with the [KeepObjectsModifier](Runtime/KeepObjectsModifier.cs) script (e.g.: keep a \"Login with Google Play Games\" button in Android only)\n- Conditionally delete `GameObject`s or `Component`s with the [DeleteObjectsModifier](Runtime/DeleteObjectsModifier.cs) script (e.g.: delete a debug button in release builds)\n\n\n## How to install\nInstall via [Unity Package Manager](https://docs.unity3d.com/Manual/upm-ui-giturl.html)\nusing the following URL:\n\n```\nhttps://github.com/gilzoide/unity-conditional-objects.git#1.0.0-preview2\n```\n\n\n## Unity support\n`AImportTimeObjectModifier` in Scenes are supported in all Unity versions.\n\nBefore Unity 2020.2, prefabs are only supported when directly instanced in scenes.\n\n\n## Creating your own modifier\n1. Create a script that inherits from [AImportTimeObjectModifier](Runtime/AImportTimeObjectModifier.cs)\n2. Implement the abstract `void Apply(bool filtersMatch)` method inside a `#if UNITY_EDITOR` block.\n   Check out the [DeleteObjectsModifier](Runtime/DeleteObjectsModifier.cs) script for an example.\n3. Add the script to your game objects in Prefabs/Scenes\n\nWhenever a prefab with your script is reimported or a scene is processed (either played in editor or built), the modifier will be applied and immediately destroyed.\n\n\n## Known issues\n- `UNITY_EDITOR` and `DEVELOPMENT_BUILD` scripting define symbols are not detected correctly during builds, use the dedicated Editor and Development filters instead\n- Extra scripting define symbols passed to `BuildPipeline.BuildPlayer` are not detected correctly during builds\n","funding_links":["https://github.com/sponsors/gilzoide","https://ko-fi.com/gilzoide","https://liberapay.com/gilzoide"],"categories":["Unity-Build"],"sub_categories":["HUD"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgilzoide%2Funity-conditional-objects","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgilzoide%2Funity-conditional-objects","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgilzoide%2Funity-conditional-objects/lists"}