Skip to content

Commit c17dbbf

Browse files
committed
Notes for docs, still WIP
1 parent 124847f commit c17dbbf

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

com.unity.netcode.gameobjects/Documentation~/TableOfContents.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
* [Max players](basics/maxnumberplayers.md)
2020
* [Transports](advanced-topics/transports.md)
2121
* [Relay](relay/relay.md)
22+
* Command line arguments
2223
* [Network components](network-components.md)
2324
* [Core components](components/core/corecomponents.md)
2425
* [NetworkObject](components/core/networkobject.md)
Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,24 @@
11
# WORK IN PROGRESS
22
# Command line arguments
33

4-
You can use [command line arguments](https://docs.unity3d.com/Documentation/Manual/CommandLineArguments.html) to configure some aspects of your game but sometimes it is needed to force another value.
4+
You can use [command line arguments](https://docs.unity3d.com/Documentation/Manual/CommandLineArguments.html) to configure some aspects of your game. With dedicated server you can use command line arguments to override default ip address and port.
55

66

7-
You can force override the command line arguments by using the optional boolean argument in SetConnectionData(string, ushort, string, bool) from UnityTransport
7+
8+
Something you can use if you want to launch a standalone build (particulary usefull for dedicated server builds)
9+
(include all known command line )
10+
-port
11+
-ip (TODO) check where is the endpoint, I may only need to assign it with no convert
12+
13+
14+
we provided port and ip and you can add your own command line args and retieve them in the CommanLineOptions class and grab them in your project by using GetArgs
15+
16+
[!Note]
17+
Adding a command line argument requires that you retrieve and set that command line argument
18+
19+
20+
21+
22+
You can force override the command line arguments by using the optional boolean argument in SetConnectionData(string, ushort, string, bool) from UnityTransport.
23+
24+
~~~~

0 commit comments

Comments
 (0)