Skip to main content

Error: InvalidOperationException: Type ControllerPrototype has not been weaved.

Cause

NetworkProjectConfig.Fusion is not in its default location. Primarily because the Photon folder has been moved.

Solutions

  • move the file to its original location, which is in :

    [ProjectRoot]\Assets\Photon\Fusion\Resources\NetworkProjectConfig.fusion

  • Or edit the path in Fusion.CodeGen.User.cs file, which is located in

    …\Photon\FusionCodeGen\Fusion.CodeGen.User.cs. Override the path to the new location of NetworkProjectConfig.Fusion. Credits to @Fadhli Hibatul Haqqi

    static partial void OverrideNetworkProjectConfigPath(ref string path) {
                path = ""; //Input the new path of NetworkProjectConfig.Fusion here
        }