Answer the question
In order to leave comments, you need to log in
How to open the game with certain parameters through the command line?
It is necessary to open a game made in Unity through the command line, the parameters will be used to determine whether the player is authorized or not.
public static bool IsSingned()
{
string[] args = Environment.GetCommandLineArgs();
int i = 0;
foreach (string arg in args)
{
if (i > 0 && arg == "signed")
return true;
i++;
}
return false;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question