{"id":18278458,"url":"https://github.com/owmacohe/omchtools","last_synced_at":"2026-05-18T14:39:29.428Z","repository":{"id":132555075,"uuid":"524215791","full_name":"Owmacohe/OMCHTools","owner":"Owmacohe","description":"Small Unity utility namespace with scripts that do the things I always seem to need while making projects","archived":false,"fork":false,"pushed_at":"2022-09-07T21:42:54.000Z","size":257,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-27T09:51:30.730Z","etag":null,"topics":["tools","unity","utility"],"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/Owmacohe.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}},"created_at":"2022-08-12T20:25:56.000Z","updated_at":"2022-09-07T18:23:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"ac2395b2-69b8-4d47-b865-813342d49581","html_url":"https://github.com/Owmacohe/OMCHTools","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Owmacohe/OMCHTools","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Owmacohe%2FOMCHTools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Owmacohe%2FOMCHTools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Owmacohe%2FOMCHTools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Owmacohe%2FOMCHTools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Owmacohe","download_url":"https://codeload.github.com/Owmacohe/OMCHTools/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Owmacohe%2FOMCHTools/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33181525,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-18T09:27:30.708Z","status":"ssl_error","status_checked_at":"2026-05-18T09:27:28.300Z","response_time":71,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["tools","unity","utility"],"created_at":"2024-11-05T12:24:32.197Z","updated_at":"2026-05-18T14:39:29.395Z","avatar_url":"https://github.com/Owmacohe.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OMCHTools\n\n***A collection of utility methods/techniques that I use for mundane Unity tasks, organized in one place!***\n\n\n\n## File\n\n**For reading array data from various types of TextAssets.**\n\n\u003e #### TXTToArray\n\u003e\n\u003e - Converts a given TextAsset / a TextAsset in the Resources folder into a array of lines\n\u003e - Works for string, int, float or Vector3\n\u003e - `null` if the file is empty\n\n\u003e #### CSVToMatrix\n\u003e\n\u003e - Converts a **given** TextAsset / a TextAsset in the Resources folder into a 2D matrix of cells\n\u003e - Works for string, int, float or Vector3\n\u003e - `null` if the file is empty\n\n\n\n## Component\n\n**For manipulating/removing/extracting Components from GameObjects.**\n\n\u003e #### RemoveAllComponents\n\u003e\n\u003e Removes all Components of the given type from the given GameObject and all its children.\n\n\u003e #### AddAllComponents\n\u003e\n\u003e Adds a Component of the given type to the given GameObject and all its children.\n\n\u003e #### GetAllComponents\n\u003e\n\u003e Gets all Components of the given type from the given GameObject and all its children.\n\n\u003e #### SetAllRendererMaterials\n\u003e\n\u003e Sets the Material of each type of Renderer / the given type of Renderer on the given GameObject and all its children.\n\n\u003e #### SetAllRendererColors\n\u003e\n\u003e Sets the Color of the Material of each type of Renderer / the given type of Renderer on the given GameObject and all its children.\n\n\u003e #### SetLocalMeshVertices\n\u003e\n\u003e Sets the local mesh vertices of a given GameObject's MeshFilter.\n\n\u003e #### SetGlobalMeshVertices\n\u003e\n\u003e Sets the global mesh vertices of a given GameObject's MeshFilter.\n\n\u003e #### GetLocalMeshVertices\n\u003e\n\u003e - Gets the local mesh vertices of a given gameObject's MeshFilter\n\u003e - `null` if it doesn’t have a mesh\n\n\u003e #### GetGlobalMeshVertices\n\u003e\n\u003e - Gets the global mesh vertices of a given gameObject's MeshFilter\n\u003e - `null` if it doesn’t have a mesh\n\n\n\n## Bounds\n\n**For getting Bounds properties of GameObjects.**\n\n\u003e #### GetGlobalCenter\n\u003e\n\u003e - Gets the local center of the given GameObject's MeshFilter's bounds\n\u003e - `Vector3.zero` if it doesn’t have a mesh\n\n\u003e #### GetLocalCenter\n\u003e\n\u003e - Gets the global center of the given GameObject's MeshFilter's bounds\n\u003e - `obj.transform.position` if it doesn’t have a mesh\n\n\u003e #### GetGlobalScale\n\u003e\n\u003e - Gets the local scale of the given GameObject's MeshFilter's bounds\n\u003e - `Vector3.zero` if it doesn’t have a mesh\n\n\u003e #### GetLocalScale\n\u003e\n\u003e - Gets the global scale of the given GameObject's MeshFilter's bounds\n\u003e - `obj.transform.localScale` if it doesn’t have a mesh\n\n\n\n## Array\n\n**For manipulating arrays.**\n\n\u003e #### Vector3ToGlobal\n\u003e\n\u003e - Converts a local Vector3 array to a global one, based on the given GameObject\n\u003e - `null` if array is null\n\n\u003e #### Vector3ToLocal\n\u003e\n\u003e - Converts a global Vector3 array to a local one, based on the given GameObject\n\u003e - `null` if array is null\n\n\u003e #### FloatRound\n\u003e\n\u003e - Rounds each element in a float array to a certain number of decimal places\n\u003e - `null` if array is null\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fowmacohe%2Fomchtools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fowmacohe%2Fomchtools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fowmacohe%2Fomchtools/lists"}