x


Windows Stand-alone command line arguments.

This isn't the typical "How can I make my own Command line arguments for my Stand alone" Question, the exact opposite.

http://unity3d.com/support/documentation/Manual/Command%20Line%20Arguments.html

Unity, the Editor, supports some Command Line arguments. Unity Stand-alone builds (for Windows) also support a few by default. In particular, I'm wondering why they aren't working for me.

I'm using Unity 3.3, made a Windows Stand Alone build, and the command line arguments:

Game.exe -single-instance

and

Game.exe -popupwindow

Are not working.

-popupwindow is supposed to remove the Windows borders from Windowed (not full screen) games, and allow the game to run like that (Like some Direct Draw games I've seen).

This is the exact behaviour I would like for my game, but it doesn't seem to work (and I don't know why).

Does anyone have a clue why these aren't working?

more ▼

asked Dec 04 '11 at 08:34 AM

CinnaMint gravatar image

CinnaMint
70 5 6 12

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

1 answer: sort voted first

You have to make one batch file to launch you exe and that batch file write code something like below:

@echo off "%~dp0Game.exe" -popupwindow exit

more ▼

answered Dec 22 '12 at 12:29 PM

UnityCoder gravatar image

UnityCoder
1

(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:

x260
x170
x21
x10

asked: Dec 04 '11 at 08:34 AM

Seen: 1252 times

Last Updated: Dec 22 '12 at 12:29 PM