Class CommandLineOptions
This class contains a list of the application instance domain's command line arguments that are used when entering PlayMode or the build is executed.
Inherited Members
Namespace: Unity.Netcode
Assembly: Unity.Netcode.Runtime.dll
Syntax
public class CommandLineOptions
Properties
Instance
Command-line options singleton
Declaration
public static CommandLineOptions Instance { get; }
Property Value
| Type | Description |
|---|---|
| CommandLineOptions |
Methods
GetArg(string)
Returns the value of an argument or null if there the argument is not present
Declaration
public string GetArg(string arg)
Parameters
| Type | Name | Description |
|---|---|---|
| string | arg | The name of the argument |
Returns
| Type | Description |
|---|---|
| string | stringValue of the command line argument passed in. |