File tree Expand file tree Collapse file tree 2 files changed +35
-1
lines changed
Expand file tree Collapse file tree 2 files changed +35
-1
lines changed Original file line number Diff line number Diff line change 3535 - custom-transports
3636 - network-profiler-window
3737 - custom-serialization
38- - boxing-systems
38+ - boxing-systems
39+
40+ - title : Troubleshooting
41+ docs :
42+ - common-mistakes
Original file line number Diff line number Diff line change 1+ ---
2+ title : Common Mistakes
3+ permalink : /wiki/common-mistakes/
4+ ---
5+
6+ This is a collection of common mistakes:
7+
8+ - [ ` NullReferenceException ` when trying to start a server/host/client] ( #err-001 )
9+
10+ ---
11+
12+ ### <a name =" err-001 " ></a >` NullReferenceException ` when trying to start a server/host/client
13+
14+ #### Problem
15+ When trying to start a server, host, or client by executing one of these lines of code
16+
17+ ``` csharp
18+ NetworkingManager .Singleton .StartServer ()
19+ NetworkingManager .Singleton .StartHost ()
20+ NetworkingManager .Singleton .StartClient ()
21+ ```
22+
23+ the following exception is thrown:
24+
25+ ``` csharp
26+ NullReferenceException : Object reference not set to an instance of an object
27+ ```
28+
29+ #### Solution
30+ You most likely forgot to add the ` NetworkingManager ` component to a game object in your scene.
You can’t perform that action at this time.
0 commit comments