Type from UPM package has not been weaved
The whole answer can be found below.
Try Our
Documentation
Please check if you can find an answer in our extensive documentation on Fusion.
Join Us
on Discord
Meet and talk to our staff and the entire Photon-Community via Discord.
Read More on
Stack Overflow
Find more information on Stack Overflow (for Circle members only).
Type from UPM package has not been weaved
gfaraj
2023-06-22 01:36:14
I'm having an issue with an assembly I'm using from an external UPM package where I place common code that I share between multiple games. I keep getting the error:
Session join/create failed. Type Foo.Components.FoobarGameRoomController has not been weaved. Has the assembly Foo been added to NetworkProjectConfig?
I tried adding the Foo assembly to Assemblies to Weave but it just gets automatically removed the next time I run the game in the editor. And the same error shows up.
I tried disabling weaving by removing the FusionCodeGen folder and I get the same error but now complaining about Assembly-CSharp:
Session join/create failed. Type ControllerPrototype has not been weaved. Has the assembly Assembly-CSharp been added to NetworkProjectConfig?
Does Fusion not support putting common classes in a UPM package?
Any help would be appreciated. I tried asking in Discord but got no responses.
Here's the link to the Discord question:
https://discord.com/channels/87465474098483200/1117462617561251841/1117462617561251841
Comments
Oh my, the issue was that I completely missed the "Apply" button on the settings object, and so they always reverted. Hitting Apply did the trick!
Back to top