{"id":19704211,"url":"https://github.com/rimurudev/unity-platformdefineswitcher","last_synced_at":"2026-02-11T16:32:41.159Z","repository":{"id":257552370,"uuid":"858621190","full_name":"RimuruDev/Unity-PlatformDefineSwitcher","owner":"RimuruDev","description":"Unity Platform Define Switcher A tool for managing and switching platform-specific scripting defines in Unity.","archived":false,"fork":false,"pushed_at":"2024-12-12T08:45:41.000Z","size":11,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T17:51:11.290Z","etag":null,"topics":["change-define","define","platform","platform-define","platform-define-switcher","rimuru-dev","rimurudev","switch-define","unity-build-tool","unity-platform","unity-platform-switcher","unity-switch-define"],"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/RimuruDev.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":"2024-09-17T08:30:48.000Z","updated_at":"2025-01-17T09:04:57.000Z","dependencies_parsed_at":"2024-11-11T21:21:32.200Z","dependency_job_id":"f1a90ac7-cabe-4b5c-be6c-89c9ef8b1caa","html_url":"https://github.com/RimuruDev/Unity-PlatformDefineSwitcher","commit_stats":null,"previous_names":["rimurudev/unity-platformdefineswitcher"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RimuruDev%2FUnity-PlatformDefineSwitcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RimuruDev%2FUnity-PlatformDefineSwitcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RimuruDev%2FUnity-PlatformDefineSwitcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RimuruDev%2FUnity-PlatformDefineSwitcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RimuruDev","download_url":"https://codeload.github.com/RimuruDev/Unity-PlatformDefineSwitcher/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251518967,"owners_count":21602239,"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":["change-define","define","platform","platform-define","platform-define-switcher","rimuru-dev","rimurudev","switch-define","unity-build-tool","unity-platform","unity-platform-switcher","unity-switch-define"],"created_at":"2024-11-11T21:21:06.277Z","updated_at":"2026-02-11T16:32:41.147Z","avatar_url":"https://github.com/RimuruDev.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Unity Platform Define Switcher\n\n*A tool for managing and switching platform-specific scripting defines in Unity.*\n\n## Introduction\n\nUnity Platform Define Switcher is an editor extension for Unity that allows developers to easily manage and switch between different platform-specific scripting define symbols. This tool simplifies the process of setting up build configurations for multiple platforms by providing a user-friendly interface within the Unity Editor.\n\n## Features\n\n- **Easy Platform Switching**: Switch between predefined platforms with a single click.\n- **Customizable Defines**: Add or remove scripting define symbols for each platform.\n- **Editor Integration**: Seamlessly integrated into the Unity Editor through a custom window.\n- **Supports Multiple Platforms**: Pre-configured for platforms like RU_STORE, YANDEX_GAMES, GOOGLE_PLAY, NASH_STORE, and easily extendable.\n\n## Installation\n\n### Using Unity Package Manager (UPM)\n\n1. Open your Unity project.\n2. Navigate to **Window \u003e Package Manager**.\n3. Click on the **➕** button and select **\"Add package from git URL...\"**.\n4. Enter the Git URL of the repository:\n\n   ```\n   https://github.com/RimuruDev/Unity-PlatformDefineSwitcher.git\n   ```\n\n5. Click **Add** to install the package.\n\n### Manual Installation\n\n1. Clone or download the repository from [GitHub](https://github.com/RimuruDev/Unity-PlatformDefineSwitcher).\n2. Copy the `Packages/com.rimurudev.platform-define-switcher` folder into your project's `Packages` directory.\n\n## Usage\n\n1. After installation, go to **Platform Build Settings \u003e Platform Build Settings** in the Unity Editor menu.\n2. The **Platform Build Settings** window will appear.\n3. In the window, you can:\n\n    - View the **Current platform** define.\n    - Select a platform from the dropdown menu.\n\n4. Click **Apply** to set the scripting define symbols for the selected platform.\n5. The tool will automatically add or remove defines based on your selection.\n\n### Supported Platforms\n\n- **RU_STORE**\n- **YANDEX_GAMES**\n- **GOOGLE_PLAY**\n- **NASH_STORE**\n\nTo add more platforms:\n\n1. Open the `BuildPlatform.cs` script located in `Runtime/`.\n\n   ```csharp\n   namespace AbyssMoth\n   {\n       public enum BuildPlatform\n       {\n           None = 0,\n           RU_STORE = 1,\n           YANDEX_GAMES = 2,\n           GOOGLE_PLAY = 3,\n           NASH_STORE = 4,\n           // Add your new platforms here :D\n           // MY_NEW_PLATFORM = 5,\n       }\n   }\n   ```\n\n2. Add your new platform to the `BuildPlatform` enum.\n3. Update the switch cases in `PlatformBuildSettings.cs` to handle the new platform.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details.\n\n## Contact\n\n- **Author**: RimuruDev\n- **Email**: [rimuru.dev@gmail.com](mailto:rimuru.dev@gmail.com)\n- **GitHub**: [https://github.com/RimuruDev](https://github.com/RimuruDev)\n- **LinkedIn**: [https://www.linkedin.com/in/rimuru/](https://www.linkedin.com/in/rimuru/)\n\n## Contributing\n\nContributions are welcome! Please follow these steps:\n\n1. Fork the repository.\n2. Create your feature branch (`git checkout -b feature/NewFeature`).\n3. Commit your changes (`git commit -m 'Add some feature'`).\n4. Push to the branch (`git push origin feature/NewFeature`).\n5. Open a pull request.\n\n## Support\n\nIf you encounter any issues or have questions, please open an [issue](https://github.com/RimuruDev/Unity-PlatformDefineSwitcher/issues) on GitHub.\n\n## Acknowledgments\n\n- Inspired by the need to simplify platform-specific build configurations in Unity projects.\n- Thanks to the Unity community for their continuous support and contributions.\n- \n\n# TODO:\n- Add hotkey\n- Add all popular stores\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frimurudev%2Funity-platformdefineswitcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frimurudev%2Funity-platformdefineswitcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frimurudev%2Funity-platformdefineswitcher/lists"}