WebGL build including UnityEngine.NetworkView
For some reason, every time I make a WebGL build, it includes UnityEngine.NetworkView (which already doesn't play nice with WebGL).
I've tried release builds, development builds, with and without code stripping, and I have searched through my code three times now and still can't find a single dependency. Yet for some reason, it gets included in the build all the same.
I get the missing function error regarding NetworkView with all builds. I've even tried going into the .js file and manually removing all lines related to RegisterClass_NetworkViewv(). All that does is give me the error message about dependencies still exist.
Somehow, somewhere there is a dependency on NetworkView that I simply can't find in my code. Is there any way via debug to see exactly what and where that dependency is?
Thanks,
Josh
Answer by deDarxo · Jun 01, 2016 at 01:40 PM
Keep sure that any prefab that you're using in your game/programm is also clean from the component "NetworkView".
I had a similar problem where my firefox console warned me about this "NetworkView". When I removed the NetworkView component from all prefabs that had it attached in my project, the programm worked.
Answer by deniskrop · Dec 31, 2016 at 05:04 AM
Were you able to get this solved? I have the exact same issue.
Your answer
![](https://koobas.hobune.stream/wayback/20220612064744im_/https://answers.unity.com/themes/thub/images/avi.jpg)