Quick start
Install
Section titled “Install”-
Add the plugin to your library on Fab and install it to your engine: Epic Games Launcher → Library → Fab Library → Install to Engine.
-
Open your project. Go to Edit → Plugins, open the Sumo Plugins category and enable Horror Gaze Tracker.
-
Restart the editor when prompted.
-
Copy the
HorrorGazeTrackerfolder into<YourProject>/Plugins/. -
Enable it in Edit → Plugins → Sumo Plugins, or add it to your
.uproject:"Plugins": [{ "Name": "HorrorGazeTracker", "Enabled": true }] -
For C++ projects, regenerate project files and build.
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”-
Add the component. Select any actor, click Add in the Components panel and choose Horror Gaze Tracker (under the Horror group).
-
Bind an event. With the component selected, find On Gaze Ended in the Details panel under Gaze → Events and click +.
-
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.
Make the move safe
Section titled “Make the move safe”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.
void AMyHauntedProp::HandleGazeEnded(UHorrorGazeTrackerComponent* Tracker){ UHorrorGazeSubsystem* Gaze = GetWorld()->GetSubsystem<UHorrorGazeSubsystem>(); FVector NewLocation; if (Gaze && Gaze->FindHiddenRandomOffset(this, FVector2D(-300.f, 300.f), FVector2D(-300.f, 300.f), FVector2D(0.f, 0.f), /*MaxAttempts=*/ 12, /*ConservativeViewHalfAngleDeg=*/ 60.f, NewLocation)) { SetActorLocation(NewLocation); }}Try the demo
Section titled “Try the demo”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.