{"id":16209897,"url":"https://github.com/jdsherbert/unity-define-scripting-symbols","last_synced_at":"2026-04-29T00:02:07.611Z","repository":{"id":210733965,"uuid":"727000572","full_name":"JDSherbert/Unity-Define-Scripting-Symbols","owner":"JDSherbert","description":"Script to add the specified scripting define symbols to the build settings (once script compilation has finished.)","archived":false,"fork":false,"pushed_at":"2023-12-04T17:52:16.000Z","size":31,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-06T12:06:19.534Z","etag":null,"topics":["csharp","define","symbols","unity","unity-2d","unity-3d","unity2d","unity3d","unityengine"],"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/JDSherbert.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}},"created_at":"2023-12-04T01:06:11.000Z","updated_at":"2024-11-12T00:17:16.000Z","dependencies_parsed_at":"2023-12-04T18:05:16.049Z","dependency_job_id":null,"html_url":"https://github.com/JDSherbert/Unity-Define-Scripting-Symbols","commit_stats":null,"previous_names":["jdsherbert/unity-define-scripting-symbols"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/JDSherbert/Unity-Define-Scripting-Symbols","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JDSherbert%2FUnity-Define-Scripting-Symbols","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JDSherbert%2FUnity-Define-Scripting-Symbols/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JDSherbert%2FUnity-Define-Scripting-Symbols/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JDSherbert%2FUnity-Define-Scripting-Symbols/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JDSherbert","download_url":"https://codeload.github.com/JDSherbert/Unity-Define-Scripting-Symbols/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JDSherbert%2FUnity-Define-Scripting-Symbols/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32404340,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T19:38:08.556Z","status":"ssl_error","status_checked_at":"2026-04-28T19:37:55.688Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","define","symbols","unity","unity-2d","unity-3d","unity2d","unity3d","unityengine"],"created_at":"2024-10-10T10:33:50.407Z","updated_at":"2026-04-29T00:02:07.572Z","avatar_url":"https://github.com/JDSherbert.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"![image](https://github.com/JDSherbert/Unity-Define-Scripting-Symbols/assets/43964243/3c7f083e-8465-4f19-b7e5-f558c5309d2f)\n\n# Unity - Define Scripting Symbols\n\n\u003c!-- Header Start --\u003e\n\u003ca href = \"https://docs.unity.com/\"\u003e \u003cimg align=\"left\" img height=\"40\" img width=\"40\" src=\"https://cdn.simpleicons.org/unity/white\"\u003e \u003c/a\u003e \n\u003ca href = \"https://learn.microsoft.com/en-us/dotnet/csharp\"\u003e \u003cimg height=\"40\" img width=\"40\" src=\"https://cdn.simpleicons.org/csharp\"\u003e \u003c/a\u003e\n\u003cimg align=\"right\" alt=\"Stars Badge\" src=\"https://img.shields.io/github/stars/jdsherbert/Unity-Define-Scripting-Symbols?label=%E2%AD%90\"/\u003e\n\u003cimg align=\"right\" alt=\"Forks Badge\" src=\"https://img.shields.io/github/forks/jdsherbert/Unity-Define-Scripting-Symbols?label=%F0%9F%8D%B4\"/\u003e\n\u003cimg align=\"right\" alt=\"Watchers Badge\" src=\"https://img.shields.io/github/watchers/jdsherbert/Unity-Define-Scripting-Symbols?label=%F0%9F%91%81%EF%B8%8F\"/\u003e\n\u003cimg align=\"right\" alt=\"Issues Badge\" src=\"https://img.shields.io/github/issues/jdsherbert/Unity-Define-Scripting-Symbols?label=%E2%9A%A0%EF%B8%8F\"/\u003e\n\u003cimg align=\"right\" src=\"https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2FJDSherbert%2FUnity-Define-Scripting-Symbols%2Fhit-counter%2FREADME\u0026count_bg=%2379C83D\u0026title_bg=%23555555\u0026labelColor=0E1128\u0026title=🔍\u0026style=for-the-badge\"\u003e\n\u003c!-- Header End --\u003e \n\n-----------------------------------------------------------------------\n\n\u003ca href=\"https://docs.unity.com/\"\u003e \n  \u003cimg align=\"left\" alt=\"Extension Tool For Unity\" src=\"https://img.shields.io/badge/Extension%20Tool%20For%20Unity-FFFFFF?style=for-the-badge\u0026logo=unity\u0026logoColor=black\u0026color=black\u0026labelColor=FFFFFF\"\u003e \u003c/a\u003e\n  \n\u003ca href=\"https://choosealicense.com/licenses/mit\"\u003e \n  \u003cimg align=\"right\" alt=\"License\" src=\"https://img.shields.io/badge/License%20:%20MIT-black?style=for-the-badge\u0026logo=mit\u0026logoColor=white\u0026color=black\u0026labelColor=black\"\u003e \u003c/a\u003e\n  \n\u003cbr\u003e\u003c/br\u003e\n\n -----------------------------------------------------------------------\n## Overview\n\nSmall script to automatically add scripting defines to your Unity build. The defines you specify in the readonly string class will be added when the script is compiled. They will be added in the order you've defined. You can read more about defining custom scripting symbols here:\nhttps://docs.unity3d.com/Manual/CustomScriptingSymbols.html\n\nBe aware that this script must be put into an \"Editor\" folder in order to work correctly.\n\nYou can add the additional scripting defines like this:\n```cs\n/// \u003csummary\u003e\n/// Symbols to add to build settings.\n/// \u003c/summary\u003e\npublic static readonly string[] Symbols = new string[]\n{\n\t\"SOME_SYMBOL\",\n\t\"ANOTHER_SYMBOL\",\n\t\"MY_ENGINE_DEF\",\n\t\"ENABLE_DEBUG\"\n};\n```\n\nHere is an example of using those defined symbols when building code:\n\n```cs\n#if MY_SYMBOL\nusing MyNamespace;\n#endif\n\npublic class MyClass\n{\n  \n#if MY_SYMBOL\n\tpublic void SomeFunc()\n\t{\n\t\t//Do Something here if your symbol is defined\n\t}\n#endif\n#if !MY_SYMBOL\n\tpublic void SomeFunc()\n\t{\n\t\t//throw some exception if not defined\n\t\tthrow new Exception(\"My symbol is not defined!\");\n\t}\n#endif\n\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdsherbert%2Funity-define-scripting-symbols","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjdsherbert%2Funity-define-scripting-symbols","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdsherbert%2Funity-define-scripting-symbols/lists"}