{"id":4375,"date":"2016-09-28T20:40:08","date_gmt":"2016-09-28T12:40:08","guid":{"rendered":"http:\/\/unitycoder.com\/blog\/?p=4375"},"modified":"2016-09-28T20:40:08","modified_gmt":"2016-09-28T12:40:08","slug":"add-custom-explorer-context-menu-item-for-opening-a-folder-as-project-with-unity","status":"publish","type":"post","link":"https:\/\/unitycoder.com\/blog\/2016\/09\/28\/add-custom-explorer-context-menu-item-for-opening-a-folder-as-project-with-unity\/","title":{"rendered":"Add Custom Explorer Context Menu Item for Opening a Folder as Project with Unity"},"content":{"rendered":"<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"4376\" data-permalink=\"https:\/\/unitycoder.com\/blog\/2016\/09\/28\/add-custom-explorer-context-menu-item-for-opening-a-folder-as-project-with-unity\/open_unity_project_from_explorer\/\" data-orig-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2016\/09\/open_unity_project_from_explorer.jpg?fit=474%2C383&amp;ssl=1\" data-orig-size=\"474,383\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"open_unity_project_from_explorer\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2016\/09\/open_unity_project_from_explorer.jpg?fit=474%2C383&amp;ssl=1\" class=\"alignnone size-full wp-image-4376\" src=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2016\/09\/open_unity_project_from_explorer.jpg?resize=474%2C383\" alt=\"open_unity_project_from_explorer\" width=\"474\" height=\"383\" srcset=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2016\/09\/open_unity_project_from_explorer.jpg?w=474&amp;ssl=1 474w, https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2016\/09\/open_unity_project_from_explorer.jpg?resize=300%2C242&amp;ssl=1 300w\" sizes=\"auto, (max-width: 474px) 100vw, 474px\" \/><\/p>\n<p>You can add custom context menu items into Windows Explorer <a href=\"http:\/\/stackoverflow.com\/questions\/20449316\/how-add-context-menu-item-to-windows-explorer-for-folders\/29769228#29769228\" target=\"_blank\">(more info<\/a>),<br \/>\nso you can create custom menu item that opens the current folder as a project in Unity.<br \/>\n(it will still warn you about project version if its different)<\/p>\n<p><strong>Example RegEdit file:<\/strong> *Note! you <strong>must<\/strong> change the Unity folders to match your unity installation folder and version<\/p>\n<style>.gist table { margin-bottom: 0; }<\/style>\n<div style=\"tab-size: 8\" id=\"gist40385306\" class=\"gist\">\n<div class=\"gist-file\" translate=\"no\" data-color-mode=\"light\" data-light-theme=\"light\">\n<div class=\"gist-data\">\n<div class=\"js-gist-file-update-container js-task-list-container\">\n<div id=\"file-unity_context_item-reg\" class=\"file my-2\">\n<div itemprop=\"text\"\n      class=\"Box-body p-0 blob-wrapper data type-windows-registry-entries  \"\n      style=\"overflow: auto\" tabindex=\"0\" role=\"region\"\n      aria-label=\"unity_context_item.reg content, created by unitycoder on 12:27PM on September 28, 2016.\"\n    ><\/p>\n<div class=\"js-check-hidden-unicode js-blob-code-container blob-code-content\">\n<p>  <template class=\"js-file-alert-template\"><\/p>\n<div data-view-component=\"true\" class=\"flash flash-warn flash-full d-flex flex-items-center\">\n  <svg aria-hidden=\"true\" data-component=\"Octicon\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg><br \/>\n    <span><br \/>\n      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.<br \/>\n      <a class=\"Link--inTextBlock\" href=\"https:\/\/github.co\/hiddenchars\" target=\"_blank\">Learn more about bidirectional Unicode characters<\/a><br \/>\n    <\/span><\/p>\n<div data-view-component=\"true\" class=\"flash-action\">        <a href=\"{{ revealButtonHref }}\" data-view-component=\"true\" class=\"btn-sm btn\">    Show hidden characters<br \/>\n<\/a>\n<\/div>\n<\/div>\n<p><\/template><br \/>\n<template class=\"js-line-alert-template\"><br \/>\n  <span aria-label=\"This line has hidden Unicode characters\" data-view-component=\"true\" class=\"line-alert tooltipped tooltipped-e\"><br \/>\n    <svg aria-hidden=\"true\" data-component=\"Octicon\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg><br \/>\n<\/span><\/template><\/p>\n<table data-hpc class=\"highlight tab-size js-file-line-container\" data-tab-size=\"4\" data-paste-markdown-skip data-tagsearch-path=\"unity_context_item.reg\">\n<tr>\n<td id=\"file-unity_context_item-reg-L1\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"1\"><\/td>\n<td id=\"file-unity_context_item-reg-LC1\" class=\"blob-code blob-code-inner js-file-line\">Windows Registry Editor Version 5.00<\/td>\n<\/tr>\n<tr>\n<td id=\"file-unity_context_item-reg-L2\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"2\"><\/td>\n<td id=\"file-unity_context_item-reg-LC2\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n<\/tr>\n<tr>\n<td id=\"file-unity_context_item-reg-L3\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"3\"><\/td>\n<td id=\"file-unity_context_item-reg-LC3\" class=\"blob-code blob-code-inner js-file-line\">[HKEY_CURRENT_USER\\SOFTWARE\\Classes\\Directory\\Background\\shell\\Unity]<\/td>\n<\/tr>\n<tr>\n<td id=\"file-unity_context_item-reg-L4\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"4\"><\/td>\n<td id=\"file-unity_context_item-reg-LC4\" class=\"blob-code blob-code-inner js-file-line\">&quot;Icon&quot;=&quot;\\&quot;D:\\\\Program Files\\\\Unity55Beta\\\\Editor\\\\Unity.exe\\&quot;&quot;<\/td>\n<\/tr>\n<tr>\n<td id=\"file-unity_context_item-reg-L5\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"5\"><\/td>\n<td id=\"file-unity_context_item-reg-LC5\" class=\"blob-code blob-code-inner js-file-line\">@=&quot;Open with Unity 5.5&quot;<\/td>\n<\/tr>\n<tr>\n<td id=\"file-unity_context_item-reg-L6\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"6\"><\/td>\n<td id=\"file-unity_context_item-reg-LC6\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n<\/tr>\n<tr>\n<td id=\"file-unity_context_item-reg-L7\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"7\"><\/td>\n<td id=\"file-unity_context_item-reg-LC7\" class=\"blob-code blob-code-inner js-file-line\">[HKEY_CURRENT_USER\\SOFTWARE\\Classes\\Directory\\Background\\shell\\Unity\\command]<\/td>\n<\/tr>\n<tr>\n<td id=\"file-unity_context_item-reg-L8\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"8\"><\/td>\n<td id=\"file-unity_context_item-reg-LC8\" class=\"blob-code blob-code-inner js-file-line\">@=&quot;\\&quot;D:\\\\Program Files\\\\Unity55Beta\\\\Editor\\\\Unity.exe\\&quot; -projectPath \\&quot;%V\\&quot;&quot;<\/td>\n<\/tr>\n<tr>\n<td id=\"file-unity_context_item-reg-L9\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"9\"><\/td>\n<td id=\"file-unity_context_item-reg-LC9\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n<\/tr>\n<\/table>\n<\/div><\/div>\n<\/p><\/div>\n<\/div><\/div>\n<div class=\"gist-meta\">\n        <a href=\"https:\/\/gist.github.com\/unitycoder\/b182f1457fcf0bebcca01689cc2ef539\/raw\/1e148176b01d1481e89550b489101277e552491d\/unity_context_item.reg\" style=\"float:right\" class=\"Link--inTextBlock\">view raw<\/a><br \/>\n        <a href=\"https:\/\/gist.github.com\/unitycoder\/b182f1457fcf0bebcca01689cc2ef539#file-unity_context_item-reg\" class=\"Link--inTextBlock\"><br \/>\n          unity_context_item.reg<br \/>\n        <\/a><br \/>\n        hosted with &#10084; by <a class=\"Link--inTextBlock\" href=\"https:\/\/github.com\">GitHub<\/a>\n      <\/div>\n<\/p><\/div>\n<\/div>\n<p>Here is regedit screenshots:<br \/>\n<a href=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2016\/09\/unity-regedit.jpg\" target=\"_blank\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"4378\" data-permalink=\"https:\/\/unitycoder.com\/blog\/2016\/09\/28\/add-custom-explorer-context-menu-item-for-opening-a-folder-as-project-with-unity\/unity-regedit\/\" data-orig-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2016\/09\/unity-regedit.jpg?fit=914%2C263&amp;ssl=1\" data-orig-size=\"914,263\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"unity-regedit\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2016\/09\/unity-regedit.jpg?fit=914%2C263&amp;ssl=1\" class=\"alignnone wp-image-4378 size-medium\" src=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2016\/09\/unity-regedit-300x86.jpg?resize=300%2C86\" alt=\"unity-regedit\" width=\"300\" height=\"86\" srcset=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2016\/09\/unity-regedit.jpg?resize=300%2C86&amp;ssl=1 300w, https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2016\/09\/unity-regedit.jpg?resize=768%2C221&amp;ssl=1 768w, https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2016\/09\/unity-regedit.jpg?w=914&amp;ssl=1 914w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2016\/09\/unity-regedit-2.jpg\" target=\"_blank\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"4377\" data-permalink=\"https:\/\/unitycoder.com\/blog\/2016\/09\/28\/add-custom-explorer-context-menu-item-for-opening-a-folder-as-project-with-unity\/unity-regedit-2\/\" data-orig-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2016\/09\/unity-regedit-2.jpg?fit=957%2C263&amp;ssl=1\" data-orig-size=\"957,263\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"unity-regedit-2\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2016\/09\/unity-regedit-2.jpg?fit=957%2C263&amp;ssl=1\" class=\"alignnone wp-image-4377 size-medium\" src=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2016\/09\/unity-regedit-2-300x82.jpg?resize=300%2C82\" alt=\"unity-regedit-2\" width=\"300\" height=\"82\" srcset=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2016\/09\/unity-regedit-2.jpg?resize=300%2C82&amp;ssl=1 300w, https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2016\/09\/unity-regedit-2.jpg?resize=768%2C211&amp;ssl=1 768w, https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2016\/09\/unity-regedit-2.jpg?w=957&amp;ssl=1 957w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><strong>Related forum topic:<\/strong><br \/>\n<a href=\"https:\/\/forum.unity3d.com\/threads\/how-to-open-unity-project-from-project-folder-where-file-is.433407\/\" target=\"_blank\">https:\/\/forum.unity3d.com\/threads\/how-to-open-unity-project-from-project-folder-where-file-is.433407\/<\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can add custom context menu items into Windows Explorer (more info), so you can create custom menu item that opens the current folder as a project in Unity. (it will still warn you about project version if its different) Example RegEdit file: *Note! you [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":4376,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"Add Custom Explorer Context Menu Item for Opening a Folder as Project with Unity #unitytips","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[797,3],"tags":[917,916,918,844,388,171],"class_list":["post-4375","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tips","category-unity3d","tag-context","tag-explorer","tag-item","tag-open","tag-project","tag-unity"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2016\/09\/open_unity_project_from_explorer.jpg?fit=474%2C383&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/p1KTaT-18z","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/4375","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/comments?post=4375"}],"version-history":[{"count":1,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/4375\/revisions"}],"predecessor-version":[{"id":4379,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/4375\/revisions\/4379"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/media\/4376"}],"wp:attachment":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/media?parent=4375"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/categories?post=4375"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/tags?post=4375"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}