Tuesday, June 9, 2015

Open Unity 5 project with right-click on folder!

I wrote this little reg file because I was tired of navigating to folders to open them.
Gone are the days of having to go through all the work (tongue in cheek) of opening Unity, navigating to a folder. Now with this registry file, you simply right click on a folder and Open in Unity. If you are using a prior version of Unity (4 or prior) note that your folder will be c:\program files(x86) not c:\program files.


Download this and save it as UnityRightClick.reg (I'll typically save it into notepad and rename the text document). To import it into your registry double click on the file. Note that if you are using Windows and don't have it setup to view your file extensions, you may be trying to execute a text file, not a registry file. Ensure your file ends in .reg and not .txt so Windows will iport this into your registry.

BTW if you are using Unity on Windows (as 88% of people do!) ensure you check out the FREE Visual Studio Tools for Unity

12 comments:

  1. Howdy Adam, I get an "object reference not set to instance of an object" when using this. Do you have the same experience? I'm wondering if it is something with the command string (could also be that I have many versions installed)

    ReplyDelete
    Replies
    1. I don't - you can run process monitor and see what command line its opening it with and debug that with the known unity command line params? Reach out to me if that makes no sense :)

      Delete
  2. Can you tell me how to remove this ("Open as Unity Project") key from registry file?

    ReplyDelete
    Replies
    1. run regedit, navigate to this key and delete it
      HKEY_CLASSES_ROOT\Folder\shell\Unity5

      Delete
  3. This comment has been removed by the author.

    ReplyDelete
  4. This comment has been removed by the author.

    ReplyDelete
  5. Thanks Adam, worked like a charm!

    ReplyDelete

Note: Only a member of this blog may post a comment.