How to do random procedural animation

Hello! i need help in unreal 5.1

Im trying to achieve an animation where it changes from one mesh to another in a random sequence ( for example from a sphere to a cube )

i need it to play it in real time as a loop animation without clicking any buttons as well, will it be possible?

Hey @chinoshin! Welcome to the forums!

That entirely depends on what the animation is supposed to be and what factors you are looking for. Can you go into further detail what the endgoal effect you are trying to achieve is?

Any additional specifics or information you provide may go a long way in solving your problem!

Hello! thank you so much for the welcome!

Im trying to achieve a mesh (eg a cube) that can translate, scale and rotate as a animation , randomly between the 3 states and then it changes to another mesh ( eg a sphere )


So for context using this image, the cube is parented to the plane. So I am hoping to have the plane move within 3 different animation which is either translate scale and rotate. And after a few seconds the cube would change to a sphere

Hope this explains my query further?

Hey @chinoshin!

Are you using the sequencer or a different method? If you are needing more specific scaling and animation I would suggest the sequencer. Your mesh can be changed if you use a blueprint actor, then you can replace the mesh in your actor to the one you are needing at that moment. Check out this non-Epic affiliated example of how to do so:

Hello again @Quetzalcodename !

This tutorial is close to what im trying to achieve, but is there any way for me to make it as a loop animation instead of using a button press to change the meshes?

thanks again so much for your patience with this !

Hey @chinoshin!

Sure there is! You can use a timer node, a timeline node, or possibly even a trigger volume that checks for that specific mesh, it just depends how you want to approach the problem and what would work best for your use case!