Initialize vs On Awake events
Hi,
I downloaded the TextLogger utility object and noticed that it is set to trigger on the Initialize event, which is described in the API docs. However, I also noticed that when I create my own script on an object, this event is not in the list of events I can choose to use.
I'd like to use an initialization event in order to have a single script with multiple event bindings. I chose "On Awake". Is this a replacement for "Initialize"? If not, how can I use "Initialize".
Thank you,
Bart
Hey Bart T.
The On Awake event is essentially a replacement for the Initialize event. From my understanding, there is a subtle difference in timing when instantiating prefabs but there is no useful difference for activating scripts.
You can still access the Initialize event timing by importing scripts from older versions of Lens Studio (like TextLogger) but I'm not clear on what the use case would be.
Cheers,
Vincent