Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnityEngine.Network' is obsolete: The legacy networking system has been removed in Unity 2018.2. #4

Open
IreneXu199 opened this issue Oct 15, 2018 · 1 comment

Comments

@IreneXu199
Copy link

After importing the project, I got 3 errors messages:

Assets/CaptainsMess/CaptainsMessDebugGUI.cs(21,44): error CS0619: UnityEngine.Network' is obsolete: The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.' Assets/CaptainsMess/CaptainsMessDebugGUI.cs(21,44): error CS0619: UnityEngine.Network.player' is obsolete: The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.' Assets/CaptainsMess/CaptainsMessDebugGUI.cs(21,51): error CS0619: UnityEngine.NetworkPlayer.ipAddress' is obsolete: The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.'

And when I tried building the project on iOS, I got this one more message:

UnityEditor.BuildPlayerWindow+BuildMethodException: Error building Player because scripts have compile errors in the editor at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (BuildPlayerOptions options) [0x0021f] in /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPlayerWindowBuildMethods.cs:187 at UnityEditor.BuildPlayerWindow.CallBuildMethods (Boolean askForBuildLocation, BuildOptions defaultBuildOptions) [0x0007f] in /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPlayerWindowBuildMethods.cs:94 UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
I am new to Unity so I don't know which one to focus on. Any help will be appreciated

@yakmyakmyakm
Copy link

Networking is obsolete in Unity 2018+
replace CaptainsMessDebugGUI.cs with the file i attached.
it is using System.net to display your IP for debugging instead of using Unity.Networking

CaptainsMessDebugGUI.cs.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants