Skip to content

Quick start

  1. Add the plugin to your library on Fab and install it to your engine: Epic Games Launcher → Library → Fab Library → Install to Engine.

  2. Open your project. Go to Edit → Plugins, open the Sumo Plugins category and enable Horror Gaze Tracker.

  3. Restart the editor when prompted.

Blueprint-only projects need no build step. Installed to the engine, the plugin ships with binaries.

If your own C++ references the plugin’s classes, add the module to your Build.cs:

PublicDependencyModuleNames.AddRange(new string[] { "HorrorGazeTracker" });

Make something change behind the player’s back

Section titled “Make something change behind the player’s back”
  1. Add the component. Select any actor, click Add in the Components panel and choose Horror Gaze Tracker (under the Horror group).

  2. Bind an event. With the component selected, find On Gaze Ended in the Details panel under Gaze → Events and click +.

  3. Make the change. In that handler, move, rotate or swap something. Then press Play, look at the actor, and look away.

The player looks away, the thing changes, and they find it changed when they look back. No other wiring is needed: the component registers itself with the subsystem in BeginPlay.

Moving an actor in On Gaze Ended to a random spot can still land it somewhere the player can see. Use Find Hidden Random Offset to pick a destination the player can’t see:

On Gaze Ended → Get HorrorGazeSubsystem → Find Hidden Random Offset (Actor To Hide = Self, X and Y range -300..300, Z range 0..0, Max Attempts 12) → Branch on the return value → Set Actor Location with Out World Location.

The plugin ships a playable demo under Content/HorrorGazeTracker/. Open Maps/L_HorrorGazeTrackerDemo and press Play. Turn on Debug Draw All Trackers in Project Settings → Game → Horror Gaze Tracker to see the sampling.

Asset What it shows
Maps/L_HorrorGazeTrackerDemo A room with several tracked actors and in-world reference boards (component details, function list, view-angle sketch).
Blueprints/Actors/B_HorrorGazeTrackerActorBase Base actor with the component attached and its events wired to overridable functions. Subclass it.
Blueprints/Actors/B_HorrorGazeTracker_ColorChange Changes material colour when the player looks away.
Blueprints/Actors/B_HorrorGazeTracker_MeshChange Swaps its mesh when the player looks away.
Blueprints/Actors/B_HorrorGazeTracker_SoundPlay Plays a sound on gaze events.
Blueprints/Core/B_HorrorGazeTrackerCharacter, …PlayerController, …GameMode Minimal first-person setup with Enhanced Input (Input/IMC_HorrorGazeTracker, IA_*_Move, IA_*_Look, IA_*_Jump).

The demo content is optional. The runtime module doesn’t depend on it, and you can delete the Content folder from a project plugin.

  • How it works: the driver, the evaluation pipeline and the state machine.
  • Reference: every property, event and function.
  • Troubleshooting: “seen through walls” and other common issues.