Skip to content

Troubleshooting

  1. 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.
  2. HorrorGaze.Log 1 for 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.
  3. HorrorGaze.Enabled 0 to confirm whether a bug is gaze-related at all.

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”.

  1. Turn on HorrorGaze.Log 1 and read the first evaluations.
  2. 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.
  3. If the log names the player as the first blocker, turn Ignore Local Player Pawn back on.
  4. Check that gaze is enabled: Gaze Tracking Enabled in Project Settings, Is Global Gaze Enabled, and HorrorGaze.Enabled isn’t 0.

View Angle is too wide, Use View Angle is off, or Max Track Distance is much larger than the space.

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.

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.

This is handled: the driver drops dead references every frame, and a level that streams back in re-registers its trackers through BeginPlay.

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.