docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    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.

    Inheritance
    object
    CommandLineOptions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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.

    In This Article
    Back to top
    Copyright © 2026 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)