Unity-Technologies / multiplayer-community-contributions

Community contributions to Unity Multiplayer Networking products and services.
MIT License
448 stars 164 forks source link

The type or namespace 'NetworkTransport' could not be found... #149

Open ReedySpeedy opened 2 years ago

ReedySpeedy commented 2 years ago

I am copying over files directly from Unity's BossRoom example straight into my own project. I have installed the necessary Transport packages and have them up to date. For some reason my Unity.Netcode namespace is throwing the following error... it's working on the BossRoom side but not with my project!! Please help! Images below: 1.) Full script 2.) Zoom in on error 3.) Packages installed 4.) NetworkTransport.cs script

Screen Shot 2022-02-10 at 2 28 58 PM Screen Shot 2022-02-10 at 2 29 56 PM Screen Shot 2022-02-10 at 2 33 38 PM Screen Shot 2022-02-10 at 2 34 16 PM
LukeStampfli commented 2 years ago

Usually deleting all the .csproj files in the root folder of your project and restarting Unity should fix this.