PUN Classic (v1)、PUN 2 和 Bolt 處於維護模式。 PUN 2 將支援 Unity 2019 至 2022,但不會添加新功能。 當然,您所有的 PUN & Bolt 專案可以用已知性能繼續運行使用。 對於任何即將開始或新的專案:請切換到 Photon Fusion 或 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.

Back to top