{"id":14960564,"url":"https://github.com/ltmx/unity.uitoolkit.extensions","last_synced_at":"2025-05-02T13:30:24.164Z","repository":{"id":222379127,"uuid":"757012624","full_name":"ltmx/Unity.UIToolkit.Extensions","owner":"ltmx","description":"Extension Methods to better build UI through code using Unity UIElements","archived":false,"fork":false,"pushed_at":"2024-10-15T10:53:52.000Z","size":62,"stargazers_count":23,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-07T02:07:56.350Z","etag":null,"topics":["ui-library","ui-toolkit","unity","unity-editor","unity-editor-gui","unity-engine","unity-gui","unity-plugin","unity-ui","unity-uielements"],"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/ltmx.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-02-13T18:27:42.000Z","updated_at":"2025-03-26T09:04:24.000Z","dependencies_parsed_at":"2024-02-13T22:23:56.259Z","dependency_job_id":"d37faf8d-9526-4756-b4bb-d711ae400d95","html_url":"https://github.com/ltmx/Unity.UIToolkit.Extensions","commit_stats":{"total_commits":31,"total_committers":2,"mean_commits":15.5,"dds":0.4516129032258065,"last_synced_commit":"7dbe5547d781b44a11deb7d94ac4b574f6c678a6"},"previous_names":["ltmx/unity.uitoolkit.extensions"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ltmx%2FUnity.UIToolkit.Extensions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ltmx%2FUnity.UIToolkit.Extensions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ltmx%2FUnity.UIToolkit.Extensions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ltmx%2FUnity.UIToolkit.Extensions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ltmx","download_url":"https://codeload.github.com/ltmx/Unity.UIToolkit.Extensions/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252045991,"owners_count":21685931,"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":["ui-library","ui-toolkit","unity","unity-editor","unity-editor-gui","unity-engine","unity-gui","unity-plugin","unity-ui","unity-uielements"],"created_at":"2024-09-24T13:22:32.126Z","updated_at":"2025-05-02T13:30:23.819Z","avatar_url":"https://github.com/ltmx.png","language":"C#","readme":"# Unity.UIToolkit.Extensions  \nExtension Library for Unity UIElements\n\n\n![GitHub package.json version](https://img.shields.io/github/package-json/v/ltmx/Unity.UIToolkit.Extensions?color=blueviolet\u0026style=for-the-badge)\n![GitHub repo size](https://img.shields.io/github/repo-size/ltmx/Unity.UIToolkit.Extensions?style=for-the-badge)\n![GitHub top language](https://img.shields.io/github/languages/top/ltmx/Unity.UIToolkit.Extensions?color=success\u0026style=for-the-badge)\n![GitHub](https://img.shields.io/github/license/ltmx/Unity.UIToolkit.Extensions?style=for-the-badge)\n[![Made for Unity](https://img.shields.io/badge/Made%20for-Unity-57b9d3.svg?style=for-the-badge\u0026logo=unity\u0026color=blueviolet)](https://unity3d.com)\n\u003c!--\n[![openupm](https://img.shields.io/npm/v/com.ltmx.mathematics.mathx?label=openupm\u0026style=for-the-badge\u0026registry_uri=https://package.openupm.com)](https://openupm.com/packages/com.ltmx.mathematics.mathx)\n--\u003e\n\n## Create UI using LINQ Syntax\nLooks :\n```cs\n    public static TextField CreateInputTextField(this VisualElement container)\n    {\n        var row = container.Row();\n        row.Image().USS(\"logo\");\n        \n        var inputTextField = row.TextField()\n            .Multiline(true)\n            .Value(AthenaSettings.DefaultPrompt)\n            .ToolTip(\"[Shift + Enter] to SEND\\n[Esc] to STOP chat\")\n            .Placeholder(\"Type your message here\")\n            .HidePlaceholderOnFocus(true);\n        return inputTextField;\n    }\n```\n\n# Install\n\nUnity \u003e Package Manager \u003e Install via Git URL \u003e paste `https://github.com/ltmx/Unity.UIToolkit.Extensions.git`\n\n### Dependencies (automaticaly installed)\n- [com.unity.mathematics](https://docs.unity3d.com/Packages/com.unity.mathematics@1.3/manual/index.html)\n- [com.unity.modules.uielements](https://docs.unity3d.com/Manual/UIElements.html) (built in package)\n\n\n# Examples\n\n### Create Child Elements\n```cs\nelement.Button();\nelement.TextField();\nelement.Label();\n```\n\n### Styling\n\n```cs\nelement.USS(\"my-style\");\nelement.RemoveUSS(\"my-class\");\nelement.ClearUSS(\"my-class\");\nelement.WhereClassListContains(\"my-class\");\nelement.FirstElementWithClass(\"my-class\");\n\n// of course everything links together\nmyButton.WhereClassListContains(\"unity-text-element\").ClearUSS();\n```\n\n## An example of how I create a Path Field\n\n```cs\npublic PathField(string name) : base(name)\n{\n    var button = new ActionButton(OpenPathInExplorer)\n        .USS(\"open-button\")\n        .FlexShrink(1)\n        .FlexGrow(1)\n        .AlignSelf(Align.Center)\n        .Margin(0)\n        .MarginRight(8)\n        .Size(24)\n        .BackgroundSize(BackgroundSizeType.Contain);\n    Insert(1, button);\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fltmx%2Funity.uitoolkit.extensions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fltmx%2Funity.uitoolkit.extensions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fltmx%2Funity.uitoolkit.extensions/lists"}