totebo
June 19, 2020, 10:26am
1
Is there a definitive order I can print and have on the wall (next to the obligatory degrees/radians and easing formulas)?
I found a post with some of it:
script update
script on_message (get message sent to self on update)
physics update (get physics messages in on_message)
render script can get message from active camera component
render script update
If there is an on_input event, where does it fit into the list above?
1 Like
britzl
June 19, 2020, 12:47pm
2
The engine update loop and order of processing can be seen here: Defold application lifecycle manual
1 Like
totebo
June 19, 2020, 1:15pm
3
I found that image, but not sure which comes first… is this right?
on_input
script update
script on_message (get message sent to self on update)
physics update (get physics messages in on_message)
render script can get message from active camera component
render script update
britzl
June 19, 2020, 8:09pm
4
Yes, that looks about right. Keep in mind that we do not guarantee an order in which the different component types get updated, but currently I believe script components get updated before physics components.