{"id":13786304,"url":"https://github.com/baba-s/Kogane.Deconstruction","last_synced_at":"2025-05-11T22:30:51.052Z","repository":{"id":110293354,"uuid":"205759502","full_name":"baba-s/Kogane.Deconstruction","owner":"baba-s","description":"【Unity】C# 7.0 新機能の分解（Deconstruction）を Unity の Vector2、Vector3、Vector4、Color、Rect などのいくつかの型で使用できるようにするパッケージ","archived":false,"fork":false,"pushed_at":"2022-08-27T00:56:32.000Z","size":15,"stargazers_count":22,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-12T02:54:41.491Z","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/baba-s.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-09-02T02:07:08.000Z","updated_at":"2024-09-05T12:25:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"2c4a3ac6-061d-4ab1-9eb1-f414c0ba5d00","html_url":"https://github.com/baba-s/Kogane.Deconstruction","commit_stats":null,"previous_names":["baba-s/uni-deconstruction"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baba-s%2FKogane.Deconstruction","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baba-s%2FKogane.Deconstruction/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baba-s%2FKogane.Deconstruction/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baba-s%2FKogane.Deconstruction/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/baba-s","download_url":"https://codeload.github.com/baba-s/Kogane.Deconstruction/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253645101,"owners_count":21941311,"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-08-03T19:01:13.436Z","updated_at":"2025-05-11T22:30:50.651Z","avatar_url":"https://github.com/baba-s.png","language":"C#","funding_links":[],"categories":["Script Utility"],"sub_categories":[],"readme":"# Kogane Deconstruction\n\nC# 7.0 新機能の分解（Deconstruction）を Unity の Vector2、Vector3、Vector4、Color、Rect などのいくつかの型で使用できるようにするパッケージ\n\n## 使用例\n\n### KeyValuePair\n\n```cs\nvar table = new Dictionary\u003cint, string\u003e();\n\nforeach ( var ( key, value ) in table )\n{\n}\n```\n\n### Vector2\n\n```cs\nvar ( x, y ) = new Vector2( 1, 2 );\n```\n\n### Vector2Int\n\n```cs\nvar ( x, y ) = new Vector2Int( 1, 2 );\n```\n\n### Vector3\n\n```cs\nvar ( x, y ) = new Vector3( 1, 2, 3 );\n```\n\n```cs\nvar ( x, y, z ) = new Vector3( 1, 2, 3 );\n```\n\n### Vector3Int\n\n```cs\nvar ( x, y, z ) = new Vector3Int( 1, 2, 3 );\n```\n\n### Vector4\n\n```cs\nvar ( x, y ) = new Vector4( 1, 2, 3, 4 );\n```\n\n```cs\nvar ( x, y, z ) = new Vector4( 1, 2, 3, 4 );\n```\n\n```cs\nvar ( x, y, z, w ) = new Vector4( 1, 2, 3, 4 );\n```\n\n### Color\n\n```cs\nvar ( r, g, b ) = new Color( 1, 0.75f, 0.5f, 0.25f );\n```\n\n```cs\nvar ( r, g, b, a ) = new Color( 1, 0.75f, 0.5f, 0.25f );\n```\n\n### Color32\n\n```cs\nvar ( r, g, b ) = new Color32( 255, 192, 128, 64 );\n```\n\n```cs\nvar ( r, g, b, a ) = new Color32( 255, 192, 128, 64 );\n```\n\n### Rect\n\n```cs\nvar ( x, y, width, height ) = new Rect( 1, 2, 3, 4 );\n```\n\n```cs\nvar ( position, size ) = new Rect( 1, 2, 3, 4 );\n```\n\n### DateTime\n\n```cs\nvar ( year, month, day ) = new DateTime( 2019, 1, 2, 3, 4, 5 );\n```\n\n```cs\nvar ( year, month, day, hour, minute, second ) = new DateTime( 2019, 1, 2, 3, 4, 5 );\n```\n\n### null 許容型\n\n```cs\nvar ( hasValue, value ) = new int?();\n```\n\n```cs\nvar ( hasValue, value ) = new int?( 25 );\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaba-s%2FKogane.Deconstruction","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbaba-s%2FKogane.Deconstruction","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaba-s%2FKogane.Deconstruction/lists"}