Unsolved How do Presets Load Before onInit?
-
Can anyone verify if the Default preset does in fact load before onInit (and therefore executing component callbacks) and if so…what is going on? So many questions here…I can't be the only one. Thanks!
-
@clevername27 No it‘s supposed to load directly after onInit. Are you sure?
-
@Christoph-Hart Thank you for your reply. I think it is, but there could be something else afoot. Here's the beginning of my onInit:
And here is my output in the Console:
cc29be98-84bc-4f26-acc7-f73619a14c19-image.png
The messages printing before "INIT EXECUTES" are being called from preset-initiated callbacks. The message about assigning block nodes is in the preset-loading callback.
Does that help? Thanks again.
-
@clevername27 said in How do Presets Load Before onInit?:
Don't know if it can help but I had issues in the past tracking down an event timeline using the Console, because the print wasn't happening in the real order... (maybe a thread thing?)
So to be sure I placed flags in an array and traced this array at the end. This way I was sure the array was fed in realtime -
@ustk Woah, so you're saying the Console wasn't printing things in order…like maybe because asynchronous threads were running?
-
@clevername27 Yes that is what I am saying, although it is rather exotic and happened to me when tracking down a particular issue (maybe between scripts, and don't remember the exact scenario)
-
@ustk Thanks, I appreciate your response. @Christoph-Hart, is there a test I can to determine if that's what's happening?
-
@clevername27 Are you using broadcasters?? Those all seem to fire off once on init as they get connected.
-
@Orvillain Yes I am.
-