Installing Fish-Networking
Step-by-step instructions for installing Fish-Networking into your Unity project.
The Unity Asset Store
Installing via the Unity Asset Store is the easiest method and ensures you get a stable release:
Open your Unity project.
Go to Window > Asset Store or visit the Unity Asset Store online.
Search for FishNet.
Click Add to My Assets and then Open in Unity.
In Unity, go to Package Manager (
Window > Package Manager
).Select My Assets, find FishNet, and click Download and then Import.
Recommended for most users who want a stable release without version control setup.
Unity Package File
Use this method if you have a .unitypackage
file, for example, downloaded from GitHub Releases, from the FirstGearGames website, or shared by a team member.
Download the FishNet
.unitypackage
file.In Unity, go to Assets > Import Package > Custom Package…
Select the downloaded
.unitypackage
file.Click Import to bring all the FishNet files into your project.
Git URL (via Unity Package Manager)
This method keeps FishNet up to date via a Git repository. Ideal if you want the latest updates or to contribute to development.
Open your Unity project.
Go to Window > Package Manager.
Click the + button in the top-left corner.
Select Add package from Git URL…
Enter the following URL:
https://github.com/FirstGearGames/FishNet.git?path=Assets/FishNet
Click Add to install.
Ensure you have Git installed on your system and added to your system path.
Fix for Errors After Importing
If you receive the following errors after importing FishNet, then make sure you don't have Netcode for GameObjects inside your project. The files it uses will clash with FishNet's files and you will need to remove it first and then import FishNet again.
Assets\FishNet\CodeGenerating\ILCore\ILCoreHelper.cs(18,13): error CS0246: The type or namespace name 'PostProcessorAssemblyResolver' could not be found (are you missing a using directive or an assembly reference?)
Assets\FishNet\CodeGenerating\ILCore\ILCoreHelper.cs(24,50): error CS0246: The type or namespace name 'PostProcessorReflectionImporterProvider' could not be found (are you missing a using directive or an assembly reference?)
Last updated