Fixing UE5 Level Sequence Assertion

🔖 game-development ⏲️ 1 minute to read

I was getting the following assertion in Unreal Engine 5.1.0 which made my game fail cooking:

Ensure condition failed: ThisNode.Range.Overlaps(InTimeRange) [File:D:\build\++UE5\Sync\Engine\Source\Runtime\MovieScene\Private\Evaluation\MovieSceneEvaluationTree.cpp] [Line: 222]

The line of code in question: MovieSceneEvaluationTree.cpp#L222

This was caused by level sequences, and via trial and error with the debugger, I traced it back to two instances of the same problem.

First Instance

The first instance was caused by a material switcher track, where I'd explicitly specified the start time of the track:

The fix was to just make the track extend infinitely again, and remove the specific start time:

Second Instance

The second instance was caused by... a material switcher track, where I'd explicitly specified the start and end time of the track:

The fix again was to make the track extend infinitely, remove my specific start/end times:

That fixed the issue! I didn't actually need those explicit start/end times anyway.

🏷️ track fix level sequence assertion material ue5 unreal engine game code cpp#l222 trial error debugger

⬅️ Previous post: Raspberry Pi 4 with Docker

➡️ Next post: Fixing UE5 Actors Disappearing when Building Lighting

🎲 Random post: Baking Ambient Occlusion using Blender

Comments

Please click here to load comments.