Download

Question about For-loop iterations between frames in Blueprints

I need to know if everything inside a for loop is iterated/update on every for-loop iteration.

It says ‘Loop iterations will take place between frames, so large loops may incur a performance hit’.

Say I have 50 iterations:

  • I create a random value for a variable in each iteration

  • and I set an angular motor using the variable in each iteration

  • and get the center of mass of the actor driven by the angular motor

Is the angular motor and the actor really updated in each iteration (ie like sub-frames), and only the last one is used for display of the frame.
Will there be 50 different center of masses (just the BP node) within one frame?