Support Forum

Timeline integration

I want to integrate pathfinding with Unity Timeline. How can I get the exact position of an agent for a specific time? I need those steps

Calculate path
Calculate path duration (i.e. 15 sec)
Calculate agent position for the specific time (i.e. 6 sec)

If I can get the calculated position I can use that position in the ProcessFrame method of timeline behaviour.


None of the built-in movement scripts support this I’m afraid. The AILerp comes closest, but it doesn’t expose any functions for this. Your best bet is probably to either modify/subclass the AILerp script or write your own movement script.