Hi,
I’m writing a small serialization plugin that in the end is supposed to offer the serialization of dictionaries by no means more than the class that contains the dictionaries having to inherit from my custom serialization class.
Unfortunately I need to execute some of the serialization on OnEnable and OnDisable. I don’t want for people to overwrite my functions if they need to use OnEnable themselves, because that would break the serialization, so I thought : “Everyone always talks of them as “Start Event” or “OnEnable” Events. If that is true, where can I find those events and how can I subscribe my functions to them directly?”
I obviously do not want to use a singleton to create another event, that would be too messy. But any other solution that would let me execute a function on OnEnable without “blocking” the OnEnable function itself would be fine for what I have in mind.
Any help is appreciated