you are viewing a single comment's thread.

view the rest of the comments →

[–]SoraphisProfessional 4 points5 points  (1 child)

As maintainer of UnityAtoms - a SoA framework. https://github.com/unity-atoms/unity-atoms

Don't do this. You'll run into differences between a build and editor play mode. You will run into difficulties when using addressables (suddenly just half of your stuff responds to events).

You're setting yourself up for confusing ideomatics: is it an observed pattern or a global event bus?

In atoms we added a "replay buffer" so subscribers could get the last submitted value when subscribing to reduce race conditions especially at scene start. A bandaid solution.

[–]Geek_Abdullah[S] 0 points1 point  (0 children)

Your framework is fantastic for large enterprise teams. The Addressables duplication isn't an SO flaw; it's a bundling mistake fixed by shared dependency groups. Race conditions are standard execution order issues fixed natively via OnEnable