NetworkBehaviour Singleton error

Hi i installed package Netcode for GameObjects 1.2.0 and try out 1.4.0 as well but with same bug.
when i create this :
NetworkBehaviour.Singleton.StartHost();
then under Singleton is error " NetworkBehaviour does not contain a definition for ‘Singleton’.
In the Course i watch is working just fine, but for me for i don’t know what reason is not working and i don’t know how to continue, what i am doing wrong?
Thank you.

A quick search yields…

Perhaps a lowercased s in singleton?

Instead
NetworkBehaviour.Singleton.StartHost();
try:
NetworkManager.Singleton.StartHost();

Omg i was totally blind yesterday thank you very much!

1 Like