The Motion Matching node has several console options which can be turned on and off to display runtime debugging information. These are described below:
Note: To run a console command, press the tilde (`) key in the Unreal Editor. Replace the # below with the relevant debug level that you desire.
Debugging the Pose
Pose debugging displays the matching pose atoms and their velocities. To turn it on, use the following console command.
a.AnimNode.MoSymph.MMPose.Debug #
Replace the # with the relevant debug level:
0 - Pose debugging is turned off
1 - Display pose match bone positions
2 - Display pose match bone velocities
Debugging the Trajectory
Trajectory debugging visualization can be turned on with the following command.
a.AnimNode.MoSymph.MMTrajectory.Debug #
Replace the # with the relevant debug level:
0 - Trajectory debugging is turned off
1 - Display the desired trajectory (green)
2 - Display the chosen trajectory (red), i.e. the trajectory of the current animation.
Animation Info Debugging
Sometimes it can be very useful to see what animation a motion matching node is playing at any given time. This can be seen via the AnimDebug console command as shown below. It displays information about the chosen pose as well as the animation sequence that the pose came from.
a.AnimNode.MoSymph.AnimDebug #
Replace the # with the relevant debug level:
0 - Anim debugging is turned off
1 - Anim debugging info will display in the top right corner of the viewport
Search / Optimization Debugging
To determine how well your optimization module is working, you can turn on the ‘search’ debug. This displays information about how many poses were searched during the last search update. It also displays the trajectories of all searched animations as orange lines.
a.AnimNode.MoSymph.MMSearchDebug #
Replace the # with the relevant debug level:
0 - Search debugging is disabled.
1 - Search debugging info will be displayed in the top right corner of the viewport