playMaker

Author Topic: Error CS0619 : Network view is obsolete  (Read 691 times)

helene.iannetta

  • Playmaker Newbie
  • *
  • Posts: 2
Error CS0619 : Network view is obsolete
« on: April 16, 2021, 05:09:36 AM »
Hello,

I hope you are doing well. First of all, thanks a lot for this awesome asset, it helped me so much developing my game.

I am currently working on a project. My Unity version is 2019.4.20f1.

Everything worked perfectly fine until yesterday, when I got this error message.

Assets/PlayMaker/Actions/ComponentAction.cs(88,19): error CS0619: 'Network View' is obsolete: `The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.


I have searched on other threads.
I have tried to delete PlayMaker and to install it again, even with deleting the Asset Store Cache to be sure that I get the latest version of the asset.
I tried the delete the ScriptAssemblies file as well, but it did not help either.

Unfortunately, I always get this error message (and even some more when deleting and installing the asset again).

It works perfectly fine when I try to install Playmaker in a new blank project. Then, I guess that the problem must come from my project, but I cannot find a way to fix it.

Would you know what would be the problem causing this error and how to fix it?


Thank you very much for your help. Please tell me if you need any further information.

helene.iannetta

  • Playmaker Newbie
  • *
  • Posts: 2
Re: Error CS0619 : Network view is obsolete
« Reply #1 on: April 16, 2021, 06:09:11 AM »
Hi again,

I'm sorry for my second message.
Just in case, this could give additional information.
I think I have understood how this problem happened.

On the Add-ons window of PlayMaker, there is the "Legacy Systems".
There is "Legacy Networking", and when clicking on the "Enable" button, a new window pops up.
"PLAYMAKER_LEGACY_NETWORK added to scripting define symbols". And from this point, I also get the same error message in the console.
Even though I click on "cancel" afterwards and chose not to import any of the new actions.

Do you know if there is a way to revert it?



Have a nice day!

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4000
  • Official Playmaker Support
    • LinkedIn
Re: Error CS0619 : Network view is obsolete
« Reply #2 on: April 16, 2021, 04:55:44 PM »
You need to remove the PLAYMAKER_LEGACY_NETWORK symbol.

To do this, go to: Project Settings > Player
Scroll down to Scripting Define Symbols.
This is a list of symbols separated by a ";"
Find and delete PLAYMAKER_LEGACY_NETWORK.
If it's in the middle of the list you may also need to delete an extra ";"
Press enter and the project should recompile, fixing the errors.