x


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.

more ▼

asked May 30 '12 at 01:14 PM

unity_PST gravatar image

unity_PST
6 3 6 6

(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

I figured it out. Thank you anyway

more ▼

answered May 30 '12 at 05:16 PM

unity_PST gravatar image

unity_PST
6 3 6 6

No problem, please post your solution as the answer.

May 30 '12 at 05:26 PM Meltdown

Well, it was as simple as looking for command line arguments

Jun 01 '12 at 12:56 PM unity_PST
(comments are locked)
10|3000 characters needed characters left

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.

more ▼

answered May 30 '12 at 01:33 PM

Meltdown gravatar image

Meltdown
5.6k 18 25 49

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?

May 30 '12 at 01:52 PM unity_PST
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x4166
x260
x118
x97

asked: May 30 '12 at 01:14 PM

Seen: 399 times

Last Updated: Jun 01 '12 at 12:56 PM