{"id":16207645,"url":"https://github.com/cemuka/quill","last_synced_at":"2026-03-07T01:34:18.691Z","repository":{"id":118943286,"uuid":"384860891","full_name":"cemuka/quill","owner":"cemuka","description":"Minimal UI library for unity. It provides modding capabilities via lua api.","archived":false,"fork":false,"pushed_at":"2021-10-27T20:11:29.000Z","size":2489,"stargazers_count":19,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-27T08:38:42.360Z","etag":null,"topics":["framework","library","lua","modding","moonsharp","plug-in","scripting","ugui","ui","unity","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cemuka.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2021-07-11T04:40:17.000Z","updated_at":"2024-11-05T05:37:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"fe53bd31-8e10-4c80-aeb8-76bd0aec19ac","html_url":"https://github.com/cemuka/quill","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cemuka/quill","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cemuka%2Fquill","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cemuka%2Fquill/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cemuka%2Fquill/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cemuka%2Fquill/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cemuka","download_url":"https://codeload.github.com/cemuka/quill/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cemuka%2Fquill/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30205163,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T19:07:06.838Z","status":"ssl_error","status_checked_at":"2026-03-06T18:57:34.882Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["framework","library","lua","modding","moonsharp","plug-in","scripting","ugui","ui","unity","unity3d","unity3d-plugin"],"created_at":"2024-10-10T10:14:06.412Z","updated_at":"2026-03-07T01:34:18.497Z","avatar_url":"https://github.com/cemuka.png","language":"C#","readme":"\u003cp align=\"center\"\u003e\n  \u003cimg width=\"256\" height=\"168\" src=\"./quill2.png\"\u003e\n\u003c/p\u003e\n\n## quill\n\nQuill is just a small wrapper based on pure UnityUI. You can create UI by using its c# api, programmatically.\n\nQuill also comes with lua api support(experimental). That means you can run lua code from `StreamingAssets` and make ui in unity. \n\n[Documentation](https://github.com/cemuka/Quill/wiki)\n\n### Components\n\n#### Label\n```cs\nvar label = Quill.CreateLabel(\"hello world\");\nlabel.element.SetSize(100, 30);\nlabel.element.SetPosition(100, 100);\n```\n\n#### Button\n```cs\nvar button = Quill.CreateButton(\"hello button!\");\nbutton.onClick.AddListener(SomeMethod);\nbutton.interactable = false;\n```\n\n![button sample](./img/button_sample.png)\n\n#### Box\n```csharp\nvar panelParent = Quill.CreateEmpty();\npanelParent.SetSize(300, 80);\n\nvar box = Quill.CreateBox(Color.red);\nvar label = Quill.CreateLabel(\"Score: \");\nlabel.alignment = TextAnchor.MiddleCenter;\nlabel.fontSize = 32;\n\npanelParent.Add(box);\npanelParent.Add(label);\n\nlabel.element.StretchToParentContainer();\nbox.element.StretchToParentContainer();\n```\n\n![panel sample](./img/panel_sample.png)\n\n## quill lua api\n\nTo enable lua feature, initialize and update the api like below.\nQuill will look into `StreamingAssets/LUA` directory for `main.lua` file.\n\n```cs\nprivate void Start()\n{\n    Quill.Init();\n    QuillLua.Run(); \n}\n\nprivate void Update()\n{\n    QuillLua.Update();\n}\n\nprivate void OnDestroy()\n{\n    QuillLua.Exit();\n}\n```\nHere is the structure of the `StreamingAssets/LUA/main.lua`\n```lua\nfunction OnInit()\n\nend\n\nfunction OnUpdate(dt)\n\nend\n\nfunction OnExit()\n\nend\n```\n\n## Lua example\n\n```lua\n\nlocal timePassed = 0\nlocal timeLabel = nil\n\nfunction OnInit()\n\n    local root = quill.empty()\n\n    color = {}\n    color.r = 0.4\n    color.g = 0.8\n    color.b = 0.3\n\n    local box = quill.box()\n    box:setColor(color.r, color.g, color.b)\n    box:setSize(300, 100)\n    root:addChild(box)\n\n    timeLabel = quill.label(\"time\")\n    timeLabel:setSize(300, 100)\n    \n    root:addChild(timeLabel)\nend\n\nfunction OnUpdate(dt)\n    timePassed = timePassed + dt\n    timeLabel:setText(\"time: \" .. string.format(\"%.2f\", timePassed))\n\nend\n```\n\n![sample](./img/sample.png)\n## This project is heavily WIP.\n\n\n## For more detail\nHere is the first devlog: [introduction to quill](https://dev.to/cemuka/introduction-to-quill-a-minimal-unity-ui-framework-with-lua-modding-support-devlog0-pm7)\n\n## references\n[Moonsharp](https://www.moonsharp.org)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcemuka%2Fquill","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcemuka%2Fquill","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcemuka%2Fquill/lists"}