{"id":16584614,"url":"https://github.com/volorf/grid-mesh","last_synced_at":"2025-06-16T19:33:00.572Z","repository":{"id":115039589,"uuid":"295823386","full_name":"Volorf/Grid-Mesh","owner":"Volorf","description":"Create a procedural mesh-based grid for your cool Unity 3D project.","archived":false,"fork":false,"pushed_at":"2022-09-17T08:33:17.000Z","size":31116,"stargazers_count":26,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-25T10:44:16.734Z","etag":null,"topics":["csharp","grid","grid-mesh","mesh","meshgeneration","procedural","procedural-mesh","unity3d"],"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/Volorf.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}},"created_at":"2020-09-15T19:01:22.000Z","updated_at":"2025-03-19T10:25:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"ae548473-dda7-4983-8b4b-1d942313cb5d","html_url":"https://github.com/Volorf/Grid-Mesh","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Volorf/Grid-Mesh","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Volorf%2FGrid-Mesh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Volorf%2FGrid-Mesh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Volorf%2FGrid-Mesh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Volorf%2FGrid-Mesh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Volorf","download_url":"https://codeload.github.com/Volorf/Grid-Mesh/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Volorf%2FGrid-Mesh/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260224061,"owners_count":22977336,"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":["csharp","grid","grid-mesh","mesh","meshgeneration","procedural","procedural-mesh","unity3d"],"created_at":"2024-10-11T22:45:03.707Z","updated_at":"2025-06-16T19:33:00.543Z","avatar_url":"https://github.com/Volorf.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Grid Mesh\nCreate a procedural mesh-based grid for your cool Unity 3D project.\n\n\u003cimg src=\"Images/demo2.gif\" width=\"600\"\u003e\n\n## How to install the package\n#### 1. Copy the Git URL \u003cbr/\u003e\u003cbr/\u003e\u003cimg src=\"Images/copy-git-url.png\" width=\"600\"\u003e\n#### 2. Open **`Window/Package Manager`** and paste the URL \u003cbr /\u003e\u003cbr /\u003e\u003cimg src=\"Images/paste-git-url.png\" width=\"600\"\u003e\n#### 3. Add the component \u003cbr /\u003e\u003cbr /\u003e\u003cimg src=\"Images/set-up.png\" width=\"600\"\u003e\n\n## How to set it up via Inspector\n\u003cimg src=\"Images/gridMeshUnityInspector.png\" width=\"300\"\u003e\n\n* **`X Segments`** defines how many cells you will get on the X-axis.\n* **`Y Segments`** defines how many cells you will get on the Y-axis.\n* **`X Step`** defines cell's width.\n* **`Y Step`** defines cell's height.\n* **`Material`** allows you to set up material.\n* **`isCentered`** Centers the grid to the centre of the game object\n\n## How to set it up via Code\nYou have a bunch of properties you can tweak to control the grid.\n\n```csharp\nusing UnityEngine;\n\npublic class GridMeshManager : MonoBehaviour\n{\n    public Material gridMat;\n    private GridMesh _gridMesh;\n\n    private void Awake() \n    {\n        // Get GridMesh component\n        _gridMesh = GetComponent\u003cGridMesh\u003e();\n        \n        // How many cell you will get on the X axis\n        _gridMesh.xSegments = 8;\n        \n        // How many cell you will get on the Y axis\n        _gridMesh.ySegments = 16;\n        \n        // Cell width\n        _gridMesh.xStep = 1.0f;\n        \n        // Cell height\n        _gridMesh.yStep = 0.5f;\n        \n        // Sets a material. By default it's magenta\n        _gridMesh.material = gridMat;\n        \n        // Centers the grid to the game object\n        _gridMesh.isCentered = true;\n    }\n}\n```\n\n## Good to know\n* Developed with Unity 2019.4 7f1. Tested with higher versions, it worked well;\n* Right now you can't change the thickness of the lines.\n\n## Links\n[Portfolio](https://olegfrolov.design/) | [Linkedin](https://www.linkedin.com/in/oleg-frolov-6a6a4752/) | [Dribbble](https://dribbble.com/Volorf) | [Twitter](https://www.twitter.com/volorf) ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvolorf%2Fgrid-mesh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvolorf%2Fgrid-mesh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvolorf%2Fgrid-mesh/lists"}