{"id":13664034,"url":"https://github.com/marijnz/unity-toolbar-extender","last_synced_at":"2025-12-24T19:57:27.278Z","repository":{"id":37752297,"uuid":"144593454","full_name":"marijnz/unity-toolbar-extender","owner":"marijnz","description":"Extend the Unity Toolbar with your own Editor UI code.","archived":false,"fork":false,"pushed_at":"2023-12-12T15:42:48.000Z","size":194,"stargazers_count":1677,"open_issues_count":9,"forks_count":168,"subscribers_count":38,"default_branch":"master","last_synced_at":"2024-11-10T21:39:43.425Z","etag":null,"topics":[],"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/marijnz.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":"2018-08-13T14:46:06.000Z","updated_at":"2024-11-08T12:14:35.000Z","dependencies_parsed_at":"2024-01-12T07:24:59.708Z","dependency_job_id":"6808af44-af76-40aa-adec-aaf75c9c2e77","html_url":"https://github.com/marijnz/unity-toolbar-extender","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marijnz%2Funity-toolbar-extender","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marijnz%2Funity-toolbar-extender/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marijnz%2Funity-toolbar-extender/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marijnz%2Funity-toolbar-extender/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marijnz","download_url":"https://codeload.github.com/marijnz/unity-toolbar-extender/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250890702,"owners_count":21503540,"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":[],"created_at":"2024-08-02T05:02:44.423Z","updated_at":"2025-12-24T19:57:27.273Z","avatar_url":"https://github.com/marijnz.png","language":"C#","readme":"# unity-toolbar-extender\n\nExtend the Unity Toolbar with your own UI code. Please note that it's quite hacky as the code is relying on reflection to access Unity's internal code. It might not work anymore with a new Unity update but is proven to work up to (at least) Unity 2021.2.\n\nAdd buttons to quickly access scenes, add sliders, toggles, anything. \n\n![Imgur](https://i.imgur.com/zFX3cJH.png)\n\n\n## Importing\n\nTo use this in your Unity project import it from Unity Package Manager. You can [download it and import it from your hard drive](https://docs.unity3d.com/Manual/upm-ui-local.html), or [link to it from github directly](https://docs.unity3d.com/Manual/upm-ui-giturl.html).\n\n\n## How to\nThis example code is shown in action in the gif below. Just hook up your GUI method to ToolbarExtender.LeftToolbarGUI or ToolbarExtender.RightToolbarGUI to draw left and right from the play buttons.\n```\n\t[InitializeOnLoad]\n\tpublic class SceneSwitchLeftButton\n\t{\n\t\tstatic SceneSwitchLeftButton()\n\t\t{\n\t\t\tToolbarExtender.LeftToolbarGUI.Add(OnToolbarGUI);\n\t\t}\n\n\t\tstatic void OnToolbarGUI()\n\t\t{\n\t\t\tGUILayout.FlexibleSpace();\n\n\t\t\tif(GUILayout.Button(new GUIContent(\"1\", \"Start Scene 1\"), ToolbarStyles.commandButtonStyle))\n\t\t\t{\n\t\t\t\tSceneHelper.StartScene(\"Assets/ToolbarExtender/Example/Scenes/Scene1.unity\");\n\t\t\t}\n\n\t\t\tif(GUILayout.Button(new GUIContent(\"2\", \"Start Scene 2\"), ToolbarStyles.commandButtonStyle))\n\t\t\t{\n\t\t\t\tSceneHelper.StartScene(\"Assets/ToolbarExtender/Example/Scenes/Scene2.unity\");\n\t\t\t}\n\t\t}\n\t}\n```\n\n\n![Imgur](https://i.imgur.com/DDNfbHW.gif)\n","funding_links":[],"categories":["GamePlay","C\\#","Open Source Repositories","C#","三 开源库","Editor Utility","C# #"],"sub_categories":["HUD","Editor"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarijnz%2Funity-toolbar-extender","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarijnz%2Funity-toolbar-extender","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarijnz%2Funity-toolbar-extender/lists"}