I am following this tutorial: Unity multiplayer tutorial using Unity Services - Netcode, Authentication, Lobby and Relay - YouTube
Everything works except this: NetworkManager.Singleton.GetComponent().SetRelayServerData(
Unity tells me it does not know UnityTransport although i have the script in my project. I am stuck for an hour now: Assets\GameManager.cs(97,51): error CS0246: The type or namespace name ‘UnityTransport’ could not be found (are you missing a using directive or an assembly reference?)
Fixed it. Use this: using Unity.Netcode.Transports.UTP;
2 Likes
I thing same error
How to solve this unity Netcode error?
Library/PackageCache/com.unity.netcode.gameobjects@1.3.1/Runtime/Transports/UTP/SecretsLoaderHelper.cs(71,56): error CS0246: The type or namespace name ‘UnityTransport’ could not be found (are you missing a using directive or an assembly reference?)
Hi piyush1011,
It’s been a while since you posted but I was wondering if you tried adding using Unity.Netcode.Transports.UTP;
to your script as amirasfour40 suggested?
what about this ? i cannot add using Unity.Netcode.Transports.UTP; to that script , so it still failed
First, remove the Netcode package then again install the package.