Troubleshooting
Debugging tools
Section titled “Debugging tools”- Debug Draw on one component, or Debug Draw All Trackers in Project Settings → Game → Horror Gaze Tracker for everything at once. Green spheres and lines = raw visible, red = occluded, cyan = camera forward out to
MaxTrackDistance. HorrorGaze.Log 1for a per-evaluation breakdown. It logs every tracker’s first 10 evaluations on its own, so in a fresh PIE session you don’t need debug draw.HorrorGaze.Enabled 0to confirm whether a bug is gaze-related at all.
A character is “seen” through walls
Section titled “A character is “seen” through walls”Cause: SampleSource is Actor Bounds on an actor that carries a Niagara system, a trailing light or another world-space component. GetActorBounds unions every component. A particle system trailing behind a character inflates the box until its corners sit on the player’s side of the wall, and one clear corner counts as visible.
Fix: switch to Mesh Sockets, set Sample Mesh Component Name to the mesh (CharacterMesh0 on ACharacter), and list head, chest and pelvis sockets.
Five-second check: untick Sample Bounds Corners. If the wall suddenly blocks, inflated bounds were the cause.
“FAIL no sample points generated” in the log
Section titled ““FAIL no sample points generated” in the log”Cause: SampleSource is Mesh Sockets or Named Component Bounds, and either the name matches no component on the actor or none of the listed sockets exist on that mesh.
Fix: use the component’s internal name, not its Details panel label. On ACharacter the mesh is CharacterMesh0, not “Mesh”.
Nothing ever registers as visible
Section titled “Nothing ever registers as visible”- Turn on
HorrorGaze.Log 1and read the first evaluations. - Check that blocking geometry has simple collision that blocks the trace channel. Traces run with complex tracing off, so a mesh with complex-only collision is invisible to them. Also make sure the target itself isn’t hidden behind geometry that has simple collision you didn’t expect.
- If the log names the player as the first blocker, turn Ignore Local Player Pawn back on.
- Check that gaze is enabled: Gaze Tracking Enabled in Project Settings, Is Global Gaze Enabled, and
HorrorGaze.Enabledisn’t0.
Everything registers as visible
Section titled “Everything registers as visible”View Angle is too wide, Use View Angle is off, or Max Track Distance is much larger than the space.
Events fire too eagerly, or too late
Section titled “Events fire too eagerly, or too late”Tune the gating. Raise Min Dwell Time Seconds to ignore glances, raise Min Away Time Seconds to cut false look-aways, or lower both for a snappier response.
Timers keep running in my pause menu
Section titled “Timers keep running in my pause menu”This is expected: the driver runs on application time, so Set Game Paused doesn’t stop it. Call Set Global Gaze Enabled (false) when the menu opens and true when it closes.
Current Visible Duration is zero in On Gaze Ended
Section titled “Current Visible Duration is zero in On Gaze Ended”This is expected: the value is cleared before the event fires. Sample it while the actor is visible, from a timer or tick, if you need the stare length.
Trackers in a streamed-out sublevel
Section titled “Trackers in a streamed-out sublevel”This is handled: the driver drops dead references every frame, and a level that streams back in re-registers its trackers through BeginPlay.
Nothing fires on the dedicated server
Section titled “Nothing fires on the dedicated server”This is expected: a dedicated server has no PlayerCameraManager, so there’s no viewpoint to test. Run gaze logic on the client and replicate the result. See Multiplayer.