OnPrepareStarted event
Add a virtual function to Generator that is called on the main thread before generation. (Example: OnBeforeGenerate). This way, we can do any initialization in our custom generators that need to be called on the main thread (such as FindObjectsOfType, etc).
Edited by Denis Pahunov