- Home /
The question is answered, right answer was accepted
Custom Resolution Dialog at Start?
Hi,
well I know this question is already asked... So I will try to change it a little bit...
Well I will try to make a custom Launcher, but I want to know which parameters are introduced into the program when we press the button play of that dialog...
I mean that button:
Maybe it opens like: OurGame.exe res windowed? (Ourgame.exe 1280x1024 0/1 (0 for Windowed and 1 for Fullscreen) ??
How can I know the parameters? Are they in the Wiki?
I found how to insert our own parameters: http://answers.unity3d.com/questions/366195/parameters-at-startup.html
But maybe the parameters that I'm searching is in Unity API?? And I can't know them??
Well I find that: http://docs.unity3d.com/Documentation/Manual/CommandLineArguments.html
It can be useful for future askers... :P
Thanks in advance. Bye.
Answer by z3nth10n · Dec 29, 2013 at 05:22 PM
I will answer my own question, I can know the parameters at startup doing that:
static string cmdInfo = "";
void Start ()
{
string[] arguments = Environment.GetCommandLineArgs();
foreach(string arg in arguments)
{
cmdInfo += arg.ToString() + "\n ";
}
}
void OnGUI()
{
Rect r = new Rect(5,5, 800, 500);
GUI.Label(r, cmdInfo);
}
But Custom Resolution Dialog doesn't have any custom parameter... so... I have made a Launcher for that...
I know this post is to old and sorry to bring it up But i realy want some help on how to make custom dialog box on startup and how can i Start Working on it or how its done ??
Plzz help would be much Appreciated