How to "delay" / make the Update call one before an other ?

Hello everyone,

Sounds like a noob question, but I’ve checked the forum and didn’t find anything !

I’m a developer, but I’m curious to get a grasp of bolt.
So, on a C# script, I have a simple transform and rotation to an element.

I’m calling within the update function, first the position change, then I’m doing my rotation.
If I do the opposite, it doesn’t work and jitter.

So, I’m trying to do the same using bolt, But I have no idea on how to say “Call this method before / after this one”.

Do any of you have any idea ?

To give more insight, here’s the bolt script.

And here’s the C# code

As you can see, the position is set before the look at.

if you have any idea, it would be amazing.
Thanks :slight_smile:

you can put the look at after the set position

Hello,

I’m sorry I’m not sure I follow !
What do you mean by after ?

I think I get it, but let’s say I want to call
FunctionA
FunctionB
Then FunctionC.

How do you manage that ?

You can chain nodes together, and they are always executed in the order the arrows are placed from the initial event.
The arrows between the nodes determine the order of execution, usually from left to right.

Which is equivalent to the code

void OnEnable()
{
    Debug.LogError("1");
    Debug.LogError("2");
    Debug.LogError("3");
}

Amazing, thank you very much !
But for the node Update, as you can see I have to create 2.
Is there anyway to create only one and chain that properly then ?

My question is more, I have 2 Update nodes, how can I call one before an other ?

dont use 2 update nodes use one and then connect the nodes first connect the setposition to then update the connect the look at to the set position this is how you have to do it because you cannot change the order the update runs since update runs every Frame they will both trigger every frame