{"id":20515183,"url":"https://github.com/jonaswischeropp/unity-scene-view-pie-menu","last_synced_at":"2025-08-19T01:02:34.782Z","repository":{"id":261931162,"uuid":"885739662","full_name":"JonasWischeropp/unity-scene-view-pie-menu","owner":"JonasWischeropp","description":"Unity package to easily create pie menus (similar to blender) in the scene view.","archived":false,"fork":false,"pushed_at":"2025-02-06T12:53:12.000Z","size":2472,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-05T23:17:46.995Z","etag":null,"topics":["piemenu","sceneview","unity3d-package"],"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/JonasWischeropp.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,"zenodo":null}},"created_at":"2024-11-09T09:10:54.000Z","updated_at":"2025-02-06T12:52:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"02c17e59-e000-41c9-8e7e-46204386aa25","html_url":"https://github.com/JonasWischeropp/unity-scene-view-pie-menu","commit_stats":null,"previous_names":["jonaswischeropp/unity-scene-view-pie-menu"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/JonasWischeropp/unity-scene-view-pie-menu","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JonasWischeropp%2Funity-scene-view-pie-menu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JonasWischeropp%2Funity-scene-view-pie-menu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JonasWischeropp%2Funity-scene-view-pie-menu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JonasWischeropp%2Funity-scene-view-pie-menu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JonasWischeropp","download_url":"https://codeload.github.com/JonasWischeropp/unity-scene-view-pie-menu/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JonasWischeropp%2Funity-scene-view-pie-menu/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271083356,"owners_count":24696276,"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-08-18T02:00:08.743Z","response_time":89,"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":["piemenu","sceneview","unity3d-package"],"created_at":"2024-11-15T21:20:03.997Z","updated_at":"2025-08-19T01:02:34.619Z","avatar_url":"https://github.com/JonasWischeropp.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Scene View Pie Menu\nThis small unity package makes it easy to create pie menus in the scene view to trigger custom actions.\nThe pie menu works similar to the [blender](blender.org) pie menu.\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"demo.gif\", alt=\"Demonstration\"\u003e\n\u003c/p\u003e\n\n## Usage\nCreate a `PieMenu` object with `PieMenuEntry`s and trigger its `Perform` method with a [`ClutchShortcut`](https://docs.unity3d.com/ScriptReference/ShortcutManagement.ClutchShortcutAttribute.html) (see [example](#exmaple)).  \nOverloads of the `PieMenuEntry` constructor allow setting the icon with a custom texture or by a string value, to use unity build in icons. A non-exhaustive icon list can be found [here](https://github.com/halak/unity-editor-icons/blob/master/README.md).\n\n## Example\nThe following example shows how this package can be used to create the pie menu in the demo.\n```c#\nusing JonasWischeropp.Unity.EditorTools.SceneView;\nusing UnityEditor;\nusing UnityEditor.ShortcutManagement;\nusing UnityEngine;\n\npublic static class DrawModePieMenu {\n    static PieMenu overlay = new PieMenu(new PieMenuEntry[]{\n        new PieMenuEntry(\"Shaded\", \"TreeEditor.Material\", () =\u003e SetDrawMode(DrawCameraMode.Normal)),\n        new PieMenuEntry(\"Wireframe\", \"TreeEditor.Geometry On\", () =\u003e SetDrawMode(DrawCameraMode.Wireframe)),\n        new PieMenuEntry(\"Shaded Wireframe\", \"d_PreMatSphere\", () =\u003e SetDrawMode(DrawCameraMode.TexturedWire)),\n    });\n\n    [ClutchShortcut(\"Draw Mode Pie Menu\", typeof(SceneView), KeyCode.Z)]\n    static void PerformPieMenu(ShortcutArguments arguments) {\n        overlay.Perform(arguments);\n    }\n\n    static void SetDrawMode(DrawCameraMode mode) {\n        SceneView.lastActiveSceneView.cameraMode = SceneView.GetBuiltinCameraMode(mode);\n    }\n}\n```\n\u003e I would recommend to disable `Project Settings \u003e Input Manager \u003e Use Physical Keys`. Otherwise, triggering a shortcut like `KeyCode.Z` would for example require pressing `Y` on a `QWERTZ` keyboard because of the swapped key locations.\n\n## Setup\nInstallation using the Package Manager:\n1. Click on the `+` in the `Package Manager` window\n2. Chose `Add package from git URL...`\n3. Insert the following URL `https://github.com/JonasWischeropp/unity-scene-view-pie-menu.git`  \nA specific [release](https://github.com/JonasWischeropp/unity-scene-view-pie-menu/releases) version can be specified by appending `#\u003cversion\u003e` (e.g. `...e-menu.git#1.0.1`).\n4. Press the `Add`-Button\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonaswischeropp%2Funity-scene-view-pie-menu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonaswischeropp%2Funity-scene-view-pie-menu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonaswischeropp%2Funity-scene-view-pie-menu/lists"}