Let’s use the example of an embedded MP4 video.
If you drag the video node in the Hierarchy into a script and select to add an event handler for the finish event, you can then add the restart code within that resulting function.
This process can be seen in the screenshot below, the code from line 20 - 24 is the end result with the code afterwards showing how it is achieved when dragging in the video node.
The project for this can be found below for you to take a look yourself, it’s simply a looping MP4 video
test_embed_mp4_video.zpp (14.0 MB)