Describe the bug
Custom messages are ignored on the host when the receiving ID is the host itself.
To Reproduce
- Start hosting.
- Register a custom message handler with a
Debug.Log("I expect to see this!");
- Send a custom message to
NetworkManager.Singleton.ServerClientId.
Actual outcome
The log message will not appear. The custom message from client ID 0 to client ID 0 (itself) was ignored.
Expected outcome
Since the host is both a client and a server I expect it to process all custom messages. It makes testing with a single client & server in 1 window much easier.
Environment (please complete the following information):
- OS: Windows 10
- Unity Version: 2022.1.0b1.2470
- Netcode Version: v1.0.0-pre3
Describe the bug
Custom messages are ignored on the host when the receiving ID is the host itself.
To Reproduce
Debug.Log("I expect to see this!");NetworkManager.Singleton.ServerClientId.Actual outcome
The log message will not appear. The custom message from client ID 0 to client ID 0 (itself) was ignored.
Expected outcome
Since the host is both a client and a server I expect it to process all custom messages. It makes testing with a single client & server in 1 window much easier.
Environment (please complete the following information):