possible to get a context menu like vs, vscode, git, vlc, 7zip etc. https://forum.unity.com/threads/openwithunity-inf.325221/ i made one that that works with old default install directory before - not cross platform - i am not sure how to make it work with hub - could make it work if i could just pass the folder to Unity Hub but takes no params - https://forum.unity.com/threads/cli-parameters.514078/ - an official optional context menu would be better for everyone
Hi, That's an interesting idea. What kind of action would you add as a shell extension? On a side note we have plans to implement file associations with Unity files so it's easier to launch projects of different versions directly from the file system. Cheers,
I sometimes create shortcuts to folders I am working on, on the desktop, as a todo and as easy access. UnityHub does make it easier, but I wanna right click on any folder or shortcut to folder and open it in unity. This is the old code: it just adds a command to open with -projectPath %1 Code (CSharp): [version] signature="$CHICAGO$" [OpenWithUnityInstall] CopyFiles = OpenWithUnity.Files.Inf AddReg = OpenWithUnity.Reg [DefaultInstall] CopyFiles = OpenWithUnity.Files.Inf AddReg = OpenWithUnity.Reg [DefaultUnInstall] DelFiles = OpenWithUnity.Files.Inf DelReg = OpenWithUnity.Reg [SourceDisksNames] 55="Open with Unity","",1 [SourceDisksFiles] OpenWithUnity.INF=55 [DestinationDirs] OpenWithUnity.Files.Inf = 17 [OpenWithUnity.Files.Inf] OpenWithUnity.INF [OpenWithUnity.Reg] HKLM,%OWU%,DisplayName,,"%OpenWithUnityName%" HKLM,%OWU%,UninstallString,,"rundll32.exe syssetup.dll,SetupInfObjectInstallAction DefaultUninstall 132 %17%\OpenWithUnity.inf" HKCR,Directory\Shell\OpenWithUnity,,,"%OpenWithUnityAccel%" HKCR,Directory\Shell\OpenWithUnity\command,,,"""C:\Program Files\Unity\Editor\Unity.exe"" -projectPath ""%1""" HKCR,Directory\Shell\OpenWithUnity,Icon,,"C:\Program Files\Unity\Editor\Unity.exe" [Strings] OpenWithUnityName="OpenWithUnity PowerToy" OpenWithUnityAccel="Open with &Unity" OWU="Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenWithUnity" I guess I will just do the same but hard code it to point to a new specific version... Thanks.
one possible solution would be to write the preferred version to the environment then the context menu could use that or even better hub could take a parameter or a -projectPath paremeter and determine which version itself
I see! There's been talks of implementing a command-line interface for the Hub but nothing has been planned as of yet. If it were though you could probably call the Hub executable with some kind of projectPath and it could open the right version for this project (if present). For now I can't promise much but I'd say the scenario above would definitely go in the direction you're going.
if you can right click on a folder and select open in vscode or open in visual studio or open in vlc you should be able to open a folder in unity like that too wtf https://en.wikipedia.org/wiki/Context_menu no plans to adopt this new context menu tech?