Skip to content

Commit a456d12

Browse files
docs: Add using declarations to initilization readme (#374)
Add using declarations to initilization readme
1 parent 7a38cd1 commit a456d12

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/_docs/getting-started/library-initialization.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ permalink: /wiki/library-initialization/
55

66
Initializing the MLAPI is fairly simple. You need a GameObject with the NetworkingManager component added to it. The NetworkingManager class has a static singleton reference to itself making it easy to access from anywhere. The first configuration you have to do is to set the Transport. You can read more about Transports on the [Custom Transports](/wiki/custom-transports/) page.
77

8+
First add the MLAPI library to your using declarations.
9+
```
10+
using MLAPI;
11+
```
812

913
To initialize the library. You have three options.
1014

@@ -34,4 +38,4 @@ This mode runs a Server which other Clients can connect to. It has no own client
3438
Usage:
3539
```csharp
3640
NetworkingManager.Singleton.StartServer();
37-
```
41+
```

0 commit comments

Comments
 (0)