- Home /
Open With... a Build Unity program
Hi everyone,
I am trying to build a 3D object viewer, which pretty much uploads a secure file(it has a custom extension added on). How do I program open with... the build Unity program I made. The program is working great, but I am not sure how to program the open with... I just want to click on secure file, and it should open the Unity program and open it up.
Answer by unity_PST · May 30, 2012 at 05:16 PM
I figured it out. Thank you anyway
Well, it was as simple as looking for command line arguments
Answer by Meltdown · May 30, 2012 at 01:33 PM
You would need to use Custom Installer software such as Installshield or a similar tool to enable this sort of functionality. The tool would write the registry entries neccessary to set Windows to automatically register your program as the one that opens your specific file type.
I feel like there is an easier way to do this. Even if I do this, how is my C# script going to recognize the file at the start of the unity program. How does my program know the file path?
Answer by vitefait · Mar 23, 2020 at 01:49 PM
This thread's answer seems relevant (in the second part of the answer, it talks about CommandLineArguments).