Have a look at https://docs.unity3d.com/Manual/CommandLineArguments.html