{"id":14960465,"url":"https://github.com/fallenblood7080/unity-extension-method","last_synced_at":"2025-10-24T18:31:52.745Z","repository":{"id":204147217,"uuid":"710209171","full_name":"fallenblood7080/Unity-Extension-Method","owner":"fallenblood7080","description":"Some Free Extension Methods","archived":false,"fork":false,"pushed_at":"2024-02-07T16:34:33.000Z","size":3583,"stargazers_count":6,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-07T02:51:15.130Z","etag":null,"topics":["csharp","unity","unity2d","unity3d","unity3d-plugin"],"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/fallenblood7080.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2023-10-26T08:37:03.000Z","updated_at":"2024-06-28T09:57:02.000Z","dependencies_parsed_at":"2023-11-07T00:19:19.559Z","dependency_job_id":"b88bada4-48be-4a40-8dfe-44e9f01819ff","html_url":"https://github.com/fallenblood7080/Unity-Extension-Method","commit_stats":{"total_commits":95,"total_committers":3,"mean_commits":"31.666666666666668","dds":0.03157894736842104,"last_synced_commit":"973f6fb8df86337405a8e21798f8d352c15c7afd"},"previous_names":["fallenblood7080/unity-extension-method"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/fallenblood7080/Unity-Extension-Method","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fallenblood7080%2FUnity-Extension-Method","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fallenblood7080%2FUnity-Extension-Method/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fallenblood7080%2FUnity-Extension-Method/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fallenblood7080%2FUnity-Extension-Method/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fallenblood7080","download_url":"https://codeload.github.com/fallenblood7080/Unity-Extension-Method/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fallenblood7080%2FUnity-Extension-Method/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280844631,"owners_count":26401020,"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-10-24T02:00:06.418Z","response_time":73,"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":["csharp","unity","unity2d","unity3d","unity3d-plugin"],"created_at":"2024-09-24T13:22:20.752Z","updated_at":"2025-10-24T18:31:49.437Z","avatar_url":"https://github.com/fallenblood7080.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align = \"center\"\u003eUnity Extension Method\u003c/h1\u003e\n\n[![Made with Unity](https://img.shields.io/badge/Made%20with-Unity-57b9d3.svg?style=flat\u0026logo=unity)](https://unity3d.com) ![GitHub contributors](https://img.shields.io/github/contributors/fallenblood7080/Unity-Extension-Method) ![GitHub forks](https://img.shields.io/github/forks/fallenblood7080/Unity-Extension-Method) ![GitHub Repo stars](https://img.shields.io/github/stars/fallenblood7080/Unity-Extension-Method)\n\n\n\n\n\n## Table of Content\n\n - 📃 [Could you tell me what's going on with this project? Why should I Care?](#Could-you-tell-me-whats-going-on-with-this-project-Why-should-I-Care)\n - ⌨ [How do I dive in and get started?](#how-do-i-dive-in-and-get-started)\n - ⁉ [Where can I turn for help if I'm stuck?](#where-can-i-turn-for-help-if-im-stuck)\n \n\n\n\n\n## Could you tell me what's going on with this project? Why should I Care?\n\nTo answer this question, first understand what the Extension method is.\n\n\u003e Extension methods enable you to \"add\" methods to existing types\n\u003e without creating a new derived type, recompiling, or otherwise\n\u003e modifying the original type. Extension methods are static methods, but\n\u003e they're called as if they were instance methods on the extended type.\n\u003e [Copied from Microsoft docs](https://learn.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/extension-methods)\n\nIn simpler words, this thing allows you to extend the functionality of the existing type.\nWe allow string type containing many methods like ToUpper() or ToLower() to convert the string in upper and lower case respectively, but if I want to create a method which converts the string into title case (*making the first letter of each word upper case*)?\nYou can go with a traditional approach like creating a method then do this: \n```cs\nnewText = TitleCase(oldtext);\n```\nnow this code looks out of place if we compare it with `newText = oldText.ToUpper()` or `newText = oldText.ToLower()`, so to deal with things we can use the extensions method which will make the code look like this:\n```cs\nnewText = oldText.ToTitleCase()\n```\n\n\n\n**So How will I create it?**\nWell in the first place, you do not have to that's why this repo exists, all you need put this repo inside your unity project and just call the method like this `something.DoSomethingMoreAwesome()`\n\n**Here are the few Examples of Extension Method that are provided by this repo**\n```cs\naudioSource.PlayFadeIn(fadeDuration:2,EaseType.EaseIn); //Plays the audio with 2 sec fade in with ease in effect.\n```\n```cs\nexplosionPoint.Add2DExplosiveForce(5, 10, explosionLayer); //Add the 2D Explosion Force of 10 unit force with the radius of 5 units which will impact the object in explosionLayer at explosionPoint(Vector2)\n```\n\n```cs\nsomeRandomList.GetRandomItem(2); //get 2 random items from the someRandomList\n```\n\n## How do I dive in and get started?\nJust Download the package from [Release](https://github.com/fallenblood7080/Unity-Extension-Method/releases) and import it in unity and you are done! \n________________\n\n## Where can I turn for help if I'm stuck?\nFeeling a bit stuck and need some friendly advice? No worries, we've got your back! Just swing by our [Discussion Page on GitHub](https://github.com/fallenblood7080/Unity-Extension-Method/discussions).\n\n### Contributors\n## Contributors\n\n\u003c!-- readme: collaborators,contributors -start --\u003e\n\u003ctable\u003e\n\u003ctr\u003e\n    \u003ctd align=\"center\"\u003e\n        \u003ca href=\"https://github.com/fallenblood7080\"\u003e\n            \u003cimg src=\"https://avatars.githubusercontent.com/u/67326508?v=4\" width=\"100;\" alt=\"fallenblood7080\"/\u003e\n            \u003cbr /\u003e\n            \u003csub\u003e\u003cb\u003eFallenblood\u003c/b\u003e\u003c/sub\u003e\n        \u003c/a\u003e\n    \u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\n        \u003ca href=\"https://github.com/Suyash1AG\"\u003e\n            \u003cimg src=\"https://avatars.githubusercontent.com/u/148102967?v=4\" width=\"100;\" alt=\"Suyash1AG\"/\u003e\n            \u003cbr /\u003e\n            \u003csub\u003e\u003cb\u003eSuyash\u003c/b\u003e\u003c/sub\u003e\n        \u003c/a\u003e\n    \u003c/td\u003e\u003c/tr\u003e\n\u003c/table\u003e\n\u003c!-- readme: collaborators,contributors -end --\u003e\n\nHere is the [Contribution Guide](https://github.com/fallenblood7080/Unity-Extension-Method/wiki/Contributions)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffallenblood7080%2Funity-extension-method","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffallenblood7080%2Funity-extension-method","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffallenblood7080%2Funity-extension-method/lists"}