Skip to content
Gallery
Documentation: Ultimate Gameplay Camera
Share
Explore
Camera Modifiers

icon picker
Yaw Follow Modifier

YawFollowModifier.gif

Yaw Follow Modifier

One of the more basic requirements of a dynamic camera is to automatically focus the walk direction of the player character by rotating the camera in the movement direction. The less the player needs to adjust the camera themselves, the better. This is why we’ve added a camera modifier which will rotate the camera in the movement direction automatically as long as the player isn’t actually controlling the camera.
Here are examples from AAA video games.
HogwartsFollowOff.gif
Source - Hogwarts Legacy
Follow Disabled
HogwartsFollowON.gif
Source - Hogwarts Legacy
Follow Enabled
GoTYawFollow.gif
Source - Ghost of Tsushima
GTAIV_YawFollowMod.gif
Source - GTA IV

Yaw Follow Modifier Settings

There are a number of settings you can tweak for the yaw follow modifier.
image.png
Enable Yaw Movement Follow: Whether this behaviour should be enabled.
cancel
Never enable the Yaw Follow Modifier and/or Pitch Follow Modifier at the same time as the Focus Modifier.
You can do this either with the camera data asset or the functions, as described further below.
Yaw Follow Speed: The speed at which the camera tries to catch up with the movement direction of the player.
Yaw Follow Time Threshold: The minimum time the player shouldn't rotate the camera manually before the yaw follow kicks in.
Yaw Follow Angle Threshold: Minimum yaw angle difference above which we trigger the yaw follow modifier to avoid the modifier being triggered for small angles.

Triggering the Yaw Follow Modifier

You can do this either by calling SetYawMovementFollowSettings on the BP_UGCCameraManager
image.png
Or you can set them through the UGCCameraDataAssets, and then calling SetCameraData on BP_UGCCameraManager (see ).
image.png

Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.