PUN Classic (v1), PUN 2 and Bolt are in maintenance mode. We will support Unity 2022 with PUN 2, but no new features will be added. Of course all your PUN & Bolt projects will continue to work and run with the known performance in the future. For any upcoming or new projects: please switch to Photon Fusion or Quantum.

Bolt Code Generation

Bolt uses a code generator under the hood to build custom classes for your events, states, etc. This is a powerful concept since Bolt can generate optimal code to handle these cases rather than relying on run-time attribution and reflection, etc. However, what this means is that when you make changes to anything in Bolt - commands, states, events, etc. through the Bolt UI, you must recompile Bolt (Bolt/Compile Assembly). This tells Bolt to regenerate the backing code for these concepts with the changes you have made in the UI.

Also keep in mind that if you add or remove scenes from the Unity scenes list, you must also recompile Bolt as well.

To Document Top