- Home /
Question by
z3nth10n · Jan 03, 2014 at 01:02 PM ·
editorstartcompilerparameters
Start uncompiled application with parameters (in Editor)
Hi,
I want to know it, for test my custom parameters...
I'm making a system of parameters, and I don't want be building it only for test if it works...
My custom parameters are (only one):
Dictionary<string, string> argumentos = new Dictionary<string, string>();
string[] arguments = Environment.GetCommandLineArgs();
foreach(string arg in arguments)
{
cmdInfo += arg.ToString() + "\n ";
argumentos.Add(arg.Substring(1, arg.IndexOf(" ") - 1), arg.Substring(arg.IndexOf(" ") + 1, arg.Length - arg.IndexOf(" ") - 1));
}
bool fS = Convert.ToBoolean(Convert.ToInt32(argumentos["fullscreen"]));
Screen.fullScreen = fS;
Thanks in advance. Bye.
Comment
Answer by Kiloblargh · Jan 03, 2014 at 05:14 PM
I read your question and your script twice and still have no idea what you are trying to do or why. Sorry...
However, it sounds like what you want is ExecuteInEditMode.
Does that do it?
No, I only want to Start the game (in Editor) with Parameters, but I solve it simulatuing the parameters with an String Array, thanks anyway.