By Yibei He & Peter Brinson
0. Introduction
A. Outcome
Build a readable item system — the foundational mechanic of the Investigator role. A line trace detects nearby notes; pressing E opens a close-up widget and freezes player input until the note is dismissed.
B. Chapters
C. Learning Objectives
Create a
Blueprint Interface(BPI_Evidence) with anExaminefunctionAdd a line trace to
BP_FirstPersonCharacterthat detects readable objects by distanceBuild a
BP_Note_1actor with a mesh and custom texture materialCreate a
Note_WidgetUI for close-up readingDisable and restore player look and movement input while the note is open
Hold On
This tutorial builds its own interaction system from scratch. It is an alternative to the one in Tutorial 821, not a continuation. Both bind the E key, so do not combine them in the same project.
1. Create Inspection Logic
A. Create a Blueprint Interface
Right-click in the Content Browser and create a
Blueprint Interface. Rename itBPI_Evidence.Double-click to open it. In the My Blueprint panel, add a function and rename it
Examine.
![]()
Ask your LLM why
In the Unreal tutorial I’m following, I just made something called a Blueprint Interface with a function on it. What is an interface, exactly, and what is it doing for me here?
B. Add a Line Trace
Open
BP_FirstPersonCharacter. You’ll find existing blueprint script in the Event Graph. Above those nodes, add anE Keynode by searchingkeyand scrolling until you findE. Drag to connect it to aLine Trace By Channelnode.
![]()
C. Get Camera Location and Rotation
Drag
FirstPersonCamerainto the graph. Get itsWorld Locations. ThenWorld Locationwires toForward Vector.
D. Add a Distance Parameter
Drag from
Get Forward Vectorand searchMultiplyunder Operators.On the second input pin of the
Multiplynode, right-click and chooseTo Float (single-precision), then right-click again toPromote to Variable. Name the variable - on the left under VARIABLES -DistanceToRead.
DistanceToReadwill determine how far away the player can interact with a readable object. Set the default value to200.0.
![]()
E. Finish the Line Trace
Drag from
Multiplyand chooseAdd(also under Operator) to connect it to one ofAdd’s pins. WireGet World Locationto the otherAddpin.For the output of
Add, wire it toEndofLine Trace By Channel.Connect
Get World Locationagain - toStartofLine Trace By Channel.
Ask your LLM why
In the Unreal tutorial I’m following, I’m using a line trace from the camera to detect what the player is looking at. Why use a line trace instead of putting an overlap volume on each inspectable object?
F. Add Interaction to the Line Trace
On the right side of
Line Trace By Channel, wireReturn Valueto aBranchnode. Drag fromOut Hitand search forBreak Hit Resultnode.
Expand
Break Hit Result.Drag from
Hit ActorofBreak Hit Result, and add theExaminenode function created in Step 1A.
Notice that
Examineis wired toBranch’sTruepin.
G. Final Blueprint Structure
Compile
2. Make a Note
A. Create Note Blueprint
In the Content Browser, create a
Blueprint Class, chooseActor, and rename itBP_Note_1.
![]()
B. Add the Note Mesh
Open the Blueprint. Add a
Cubecomponent. Name itNote.
![]()
In the Viewport, adjust the scale — make it thin on the Z axis so it looks like a flat piece of paper.
C. Add Note Material
Right-click this image to download. Drag to your Content Browser to make a Texture.
Right-click it and choose
Create Material.![]()
![]()
Set the
Cubemesh’s material to this new material.You can now place the note blueprint -
BP_Note_1- in your scene. Leave it where you want the player to find it.
D. Add Evidence Interface to the Note
In
BP_Note_1, go to Class Settings. Under Implemented Interfaces, add theBPI_Evidenceinterface.
![]()
Compile and Save
3. Place the Object in the UI
A. Create a Widget Blueprint
In the Content Browser, create a
Widget Blueprint→User Widget.
![]()
Name it
Note_Widget.Double-click to open it. Drag a
Canvas Panelinto the UI area.
B. Set the Note Image
Drag an
Imagewidget inside the Canvas Panel. Assuming you used the texture provided above, size it to 728x895. Position it.
![]()
At the top of the Details panel, set the
Anchorsto center.Assign your texture under Brush → Image. (The file provided above is named
unrealTutorial_12_160although you might have renamed it previously).
![]()
Optionally, add a
Background Blurwidget size to fill the screen. SetBlur Strengthto10or so.
Save All
4. Put It All Together
A. Add Widget to the Note
Go back to
BP_Note_1. In the Event Graph, right-click and search forExaminein order to add anEvent Examinenode.
![]()
Wire it to a
Flip Flopnode.From the
Aoutput of Flip Flop, drag out aCreate Widgetnode (it will be labeled “Construct None”) — setWidget ClasstoNote_Widgetand the node will rename toCreate Note Widget Widget. (Double “Widget” is correct).From there, add an
Add to Viewport. Check all your wires.Ask your LLM why
In the Unreal tutorial I’m following, I just used a node called Flip Flop to alternate between two paths each time an Event fires. What is Flip Flop, and how does it work?
B. Disable Player Control While Reading
Right-click and find
Get Player Controller. Drag fromGet Player Controllerin order to addSet Ignore Look InputandSet Ignore Move Input. Checktruethe boolean parameters found inNew Look InputandNew Move Input. Connect all wires:From the
Boutput of Flip Flop, drag out and search forRemove from Parent. You might need to uncheckContext Sensitive.Add
Set Ignore Look InputandSet Ignore Move Inputagain but their boolean parameters should befalse. Notice multiple blue wires coming from twoReturn Valueouts.Ask your LLM why
In the Unreal tutorial I’m following, I just built a Blueprint script: pressing E does a line trace from the camera, calls a function through a Blueprint Interface on the hit actor, and that actor uses a Flip Flop to show/hide a widget and lock/unlock player input. Can you walk me through how this all connects, step by step?
Tip: right-click the above screenshot, save on your computer, and paste into the chat so your LLM can see your actual Blueprint.
Test: approach the note, look at it, and press E.
What you can now build
- A readable note in the world — E key opens it full-screen, E closes it; player cannot move or look while reading
- A Blueprint Interface for interaction, letting any actor define its own response to the E key
- The foundational Investigator mechanic: line trace → E key → actor decides what happens — evidence items, clues, environmental storytelling
Example deviations you are ready for
- Audio log — replace
Create WidgetwithPlay Sound 2D.Flip Flopgives stop/start for free. - Photograph or map — identical functionality to this tutorial; swap the texture in
Note_Widget. - Multi-page diary — add Next/Previous buttons that cycle through a texture array.
- Inscription — use a
TextBlockwidget instead of an Image widget. - Light switch — actor toggles a
Point Light’s visibility; no widget or input lock needed. - Door or drawer —
Examinefires a Timeline that rotates the mesh. - Locked container — branch on a bool stored on the character (
HasFoundKey); locked path shows a widget, unlocked path opens.









Drag from 




Right-click it and choose




Name it 







