{"id":22576246,"url":"https://github.com/doyasu24/unitynamescodegenerator","last_synced_at":"2025-08-28T09:14:05.443Z","repository":{"id":139298933,"uuid":"113899549","full_name":"doyasu24/UnityNamesCodeGenerator","owner":"doyasu24","description":"NamesCodeGenerator for Unity generates type safe value objects and static classes from Tag, Layer, SortingLayer, and Scene.","archived":false,"fork":false,"pushed_at":"2022-11-28T12:45:31.000Z","size":651,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T17:34:05.831Z","etag":null,"topics":["codegenerator","unity","unity-editor"],"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/doyasu24.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,"zenodo":null}},"created_at":"2017-12-11T19:28:57.000Z","updated_at":"2024-05-27T04:04:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"0e1a5e10-3087-47ba-ba21-7fa6f633c07a","html_url":"https://github.com/doyasu24/UnityNamesCodeGenerator","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/doyasu24/UnityNamesCodeGenerator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doyasu24%2FUnityNamesCodeGenerator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doyasu24%2FUnityNamesCodeGenerator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doyasu24%2FUnityNamesCodeGenerator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doyasu24%2FUnityNamesCodeGenerator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/doyasu24","download_url":"https://codeload.github.com/doyasu24/UnityNamesCodeGenerator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doyasu24%2FUnityNamesCodeGenerator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272475562,"owners_count":24940719,"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","status":"online","status_checked_at":"2025-08-28T02:00:10.768Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["codegenerator","unity","unity-editor"],"created_at":"2024-12-08T04:06:30.561Z","updated_at":"2025-08-28T09:14:05.425Z","avatar_url":"https://github.com/doyasu24.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# UnityNamesCodeGenerator\nNamesCodeGenerator for Unity generates type safe value objects and static classes from Tag, Layer, SortingLayer, and Scene.\n\n# Install\n\nyou can add `https://github.com/doyasu24/UnityNamesCodeGenerator.git?path=Assets/Plugins/NamesCode#3.1.0` to Package Manager\n\n![upm](./doc/upm.png)\n\nor import unitypackage from [release page](https://github.com/doyasu24/UnityNamesCodeGenerator/releases).\n\n# How to use\n\nExecute `Tools/NamesCode/GenerateCode` from menu to generate the code.\n\n![](./doc/generate-code-from-menu.png)\n\n## Output directory\n\nBy default, code is generated in `Assets/NamesCode/Generated` directory.\n\nTo change the output directory, create a `GeneratorSetting.asset` and place it somewhere in your project.\nFor example, `Assets/NamesCode/Editor/GeneratorSetting.asset`.\n\n![](./doc/create-generator-setting.png)\n\nThen, change the value of `OutputDirectory` in GeneratorSetting.\n\n![](./doc/change-output-dir.png)\n\n# Code Generation Result\n\nThe format policy follows `Microsoft Visual Studio`\n\n```:Layers.cs\n// Generated code by NamesCodeGenerator\n\nnamespace NamesCode\n{\n    public static class Layers\n    {\n        public static readonly LayerName Default = new LayerName(\"Default\", 0);\n        public static readonly LayerName TransparentFX = new LayerName(\"TransparentFX\", 1);\n        public static readonly LayerName IgnoreRaycast = new LayerName(\"Ignore Raycast\", 2);\n        public static readonly LayerName Water = new LayerName(\"Water\", 4);\n        public static readonly LayerName UI = new LayerName(\"UI\", 5);\n\n        public static readonly LayerName[] Names =\n        {\n            Default,\n            TransparentFX,\n            IgnoreRaycast,\n            Water,\n            UI,\n        };\n    }\n}\n```\n\n# License\n\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoyasu24%2Funitynamescodegenerator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdoyasu24%2Funitynamescodegenerator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoyasu24%2Funitynamescodegenerator/lists"}