Hi,
I am trying to implement an scriptable object based event system.
Events and event listeners are both scriptable objects so they can live in the project rather than the scene.
This makes it easy to reference either from other assets from the project or objects in the scene.
Listeners register must register to events and I thought I could do this in the OnEnable callback of the scriptable object. But then I found OnEnable doesn’t get called unless you instanciate the prefab, or select it on the editor. So then they never execute OnEnable thus never register to the listener.
Is there anyway I can do this that doesnt imply manually refering them in a monobehaviour in the scene? Thanks!