{"id":18043715,"url":"https://github.com/thundernerd/unity3d-scriptingdefineutility","last_synced_at":"2025-04-09T22:30:32.654Z","repository":{"id":54381571,"uuid":"305078118","full_name":"Thundernerd/Unity3D-ScriptingDefineUtility","owner":"Thundernerd","description":"a small helper that allows you to more easily modify the scripting define symbols for your project","archived":false,"fork":false,"pushed_at":"2021-02-22T08:20:50.000Z","size":11,"stargazers_count":16,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-01T11:02:24.850Z","etag":null,"topics":[],"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/Thundernerd.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":"thundernerd","tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2020-10-18T10:42:36.000Z","updated_at":"2024-09-14T14:34:34.000Z","dependencies_parsed_at":"2022-08-13T14:00:44.582Z","dependency_job_id":null,"html_url":"https://github.com/Thundernerd/Unity3D-ScriptingDefineUtility","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/Thundernerd%2FUnity3D-ScriptingDefineUtility","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thundernerd%2FUnity3D-ScriptingDefineUtility/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thundernerd%2FUnity3D-ScriptingDefineUtility/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thundernerd%2FUnity3D-ScriptingDefineUtility/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Thundernerd","download_url":"https://codeload.github.com/Thundernerd/Unity3D-ScriptingDefineUtility/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248123198,"owners_count":21051422,"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":[],"created_at":"2024-10-30T17:09:32.854Z","updated_at":"2025-04-09T22:30:32.591Z","avatar_url":"https://github.com/Thundernerd.png","language":"C#","readme":"# Scripting Define Utility\n\n\u003cp align=\"center\"\u003e\n\t\u003cimg alt=\"GitHub package.json version\" src =\"https://img.shields.io/github/package-json/v/Thundernerd/Unity3D-ScriptingDefineUtility\" /\u003e\n\t\u003ca href=\"https://github.com/Thundernerd/Unity3D-ScriptingDefineUtility/issues\"\u003e\n\t\t\u003cimg alt=\"GitHub issues\" src =\"https://img.shields.io/github/issues/Thundernerd/Unity3D-ScriptingDefineUtility\" /\u003e\n\t\u003c/a\u003e\n\t\u003ca href=\"https://github.com/Thundernerd/Unity3D-ScriptingDefineUtility/pulls\"\u003e\n\t\t\u003cimg alt=\"GitHub pull requests\" src =\"https://img.shields.io/github/issues-pr/Thundernerd/Unity3D-ScriptingDefineUtility\" /\u003e\n\t\u003c/a\u003e\n\t\u003ca href=\"https://github.com/Thundernerd/Unity3D-ScriptingDefineUtility/blob/master/LICENSE.md\"\u003e\n\t\t\u003cimg alt=\"GitHub license\" src =\"https://img.shields.io/github/license/Thundernerd/Unity3D-ScriptingDefineUtility\" /\u003e\n\t\u003c/a\u003e\n\t\u003cimg alt=\"GitHub last commit\" src =\"https://img.shields.io/github/last-commit/Thundernerd/Unity3D-ScriptingDefineUtility\" /\u003e\n\u003c/p\u003e\n\nScripting Define Utility is a small helper that allows you to more easily modify the scripting define symbols for your project.\n\n## Installation\n1. The package is available on the [openupm registry](https://openupm.com). You can install it via [openupm-cli](https://github.com/openupm/openupm-cli).\n```\nopenupm add net.tnrd.scriptingdefineutility\n```\n2. Installing through a [Unity Package](http://package-installer.glitch.me/v1/installer/package.openupm.com/net.tnrd.scriptingdefineutility?registry=https://package.openupm.com) created by the [Package Installer Creator](https://package-installer.glitch.me) from [Needle](https://needle.tools)\n\n[\u003cimg src=\"https://img.shields.io/badge/-Download-success?style=for-the-badge\"/\u003e](http://package-installer.glitch.me/v1/installer/package.openupm.com/net.tnrd.scriptingdefineutility?registry=https://package.openupm.com)\n\n## Usage\nThere's a couple of interactions you can do with the ScriptingDefineUtility\n\n#### Adding\nAdding a new define symbol to the list\n\n```csharp\nprivate void Foo()\n{\n    ScriptingDefineUtility.Add(\"Bar\");\n}\n```\n\n#### Removing\nRemoving an existing define symbol from the list\n\n```csharp\nprivate void Foo()\n{\n    ScriptingDefineUtility.Remove(\"Bar\");\n}\n```\n\n#### Contains\nChecking if a symbol is in the current symbols list\n\n```csharp\nprivate void Foo()\n{\n    if (ScriptingDefineUtility.Contains(\"Bar\"))\n    {\n        ...\n    }\n}\n```\n\n#### Getting\nThere are two ways of getting all the define symbols\n\nThis returns all the symbols as stored in the settings.\n```csharp\nprivate void Foo()\n{\n    string symbols = ScriptingDefineUtility.GetSymbols();\n}\n```\n\nThis returns all the symbols split by the delimiter ; (semicolon) and returns it as a string array\n```csharp\nprivate void Foo()\n{\n    string[] symbols = ScriptingDefineUtility.Symbols;\n}\n```\n\n## Support\n**Scripting Define Utility** is a small and open-source utility that I hope helps other people. It is by no means necessary but if you feel generous you can support me by donating.\n\n[![ko-fi](https://www.ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/J3J11GEYY)\n\n## Contributing\nPull requests are welcomed. Please feel free to fix any issues you find, or add new features.\n","funding_links":["https://ko-fi.com/thundernerd","https://ko-fi.com/J3J11GEYY"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthundernerd%2Funity3d-scriptingdefineutility","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthundernerd%2Funity3d-scriptingdefineutility","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthundernerd%2Funity3d-scriptingdefineutility/lists"}