I’d like to call a function and have it play an animation in editor via a Timeline component, but the timeline doesn’t seem to play. The function has “Call In Editor” enabled. It seems to be called fine and even plays the timeline in Simulate or Play mode, but just not in editor.
Is there another way to get timeline or tick-like functionality while in editor?
It can be done with a timer using “Set Timer by Event” or “Set Timer by Function Name” and with Looping enabled. The Time input on this function is the time between ticks, so it can be set to 0.033 or 0.016 to tick at 30 or 60fps. You just need to keep track of how long it’s been running if you want it to stop at a certain point. I used an Age variable that gets updated on each call, and then branches off and clears the timer when the Age is greater than the Duration I defined.