{"id":13661275,"url":"https://github.com/DarrenTsung/DTCommandPalette","last_synced_at":"2025-04-24T23:32:21.013Z","repository":{"id":79634772,"uuid":"79855717","full_name":"DarrenTsung/DTCommandPalette","owner":"DarrenTsung","description":"Command palette for Unity - run methods, open scenes, and more!","archived":false,"fork":false,"pushed_at":"2017-10-22T17:36:35.000Z","size":3962,"stargazers_count":19,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-14T22:40:11.921Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/DarrenTsung.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":"2017-01-23T22:38:35.000Z","updated_at":"2024-10-19T10:56:19.000Z","dependencies_parsed_at":"2023-02-25T16:31:32.036Z","dependency_job_id":null,"html_url":"https://github.com/DarrenTsung/DTCommandPalette","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DarrenTsung%2FDTCommandPalette","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DarrenTsung%2FDTCommandPalette/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DarrenTsung%2FDTCommandPalette/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DarrenTsung%2FDTCommandPalette/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DarrenTsung","download_url":"https://codeload.github.com/DarrenTsung/DTCommandPalette/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250727797,"owners_count":21477372,"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:01:31.823Z","updated_at":"2025-04-24T23:32:17.488Z","avatar_url":"https://github.com/DarrenTsung.png","language":"C#","funding_links":[],"categories":["C\\#","Command","Game Development"],"sub_categories":["Unity Engine: Resources"],"readme":"# DTCommandPalette\nCommand palette for Unity - run methods, open scenes, and more!\n\n### To install:\nClone the git repository and add the entire folder to your Unity project.\n\n### Supported Versions:\nTested on Unity 5.4. It will probably work on other similar versions..\n\n### Features:\nOpen..\n\n`%t (Cmd-T on Mac / Control-T on Windows)`\n* Open Scenes\n* Select GameObjects in the Scene\n* Open Prefabs into a sandbox scene (requires [PrefabSandbox](https://github.com/DarrenTsung/DTPrefabSandbox))\n\n![CommandPaletteScreenshot](CommandPaletteScreenshot.png)\n\nCommand Palette\n\n`%#m (Cmd-Shift-M on Mac / Control-Shift-M on Windows)`\n* Run commands (any method with [MethodCommand] attribute can be run)\n\n![CommandPaletteShowoff](CommandPaletteShowoff.gif)\n\nExample (C#):\n```csharp\nusing DTCommandPalette;\nusing UnityEngine;\n\npublic static class ExampleClass {\n  [MethodCommand]\n  public static void DeletePlayerPrefs() {\n    PlayerPrefs.DeleteAll();\n  }\n}\n\npublic class ExampleMonoBehaviour : MonoBehaviour {\n  [SerializeField] private Image _image;\n\n  // This method command will only appear if\n  // the currently selected GameObject has an\n  // ExampleMonoBehaviour on it\n  [MethodCommand]\n  public void TurnYellow() {\n    _image.color = Color.yellow;\n  }\n}\n```\n\n### Extending CommandPalette and Dependencies\nTo help external developers with extending CommandPalette by writing their own specific ICommands, DTCommandPalette injects a compile flag named DT_COMMAND_PALETTE into your project automatically that you can use to wrap your extension classes.\n\nThis means that you can write your code and have it be a soft (optional) dependency on DTCommandPalette instead of requiring DTCommandPalette to be imported into the project.\n\nExample (C#):\n```csharp\nusing UnityEngine;\n\n#if DT_COMMAND_PALETTE\nusing DTCommandPalette;\n#endif\n\npublic static class ExampleClass {\n  #if DT_COMMAND_PALETTE\n  [MethodCommand]\n  #endif\n  public static void DeletePlayerPrefs() {\n    PlayerPrefs.DeleteAll();\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FDarrenTsung%2FDTCommandPalette","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FDarrenTsung%2FDTCommandPalette","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FDarrenTsung%2FDTCommandPalette/lists"}