-
Notifications
You must be signed in to change notification settings - Fork 0
Step 7: Sense System
Sense System
To set up the Sense System, start by selecting the Interact Component that we previously added to your Character blueprint class.
In the Details panel, enable the Use Sense option.
In the Sense Decal Material section, click the picker and type M_SenseDecal into the search box, then select the material that appears.
If you want to add a sound effect, you can select one in the Start Sense Audio section.
Sense Life Span determines the size of the scanning area. If you want the scan to cover a larger region, you can increase this value.
Next, click the + button in the Sense Object Types section and select which actor types the system should be able to detect.
Now, access your Interact Component in the Blueprint and search for the Use Sense function, then bind it to an input key.
The Sense System is now ready.
If you want, you can also bind the Use Sense Cooldown function. This prevents players from using the system repeatedly without delay.
Now let’s configure the detection settings for the actors.
Open the InteractActor Blueprint class we created earlier, and in the Interfaces section, double-click the Use Sense event.
Here, we’ve connected a simple post-process material, but you can use a marker animation or any other custom visual design you prefer.
To apply the Post Process material, you can add a PostProcessVolume to your level.
Alternatively, you can add a Post Process component directly to your actor’s Blueprint class.
Now select the PostProcessVolume you added and assign the material in the Details panel. We used a simple material named M_Outline, but you can customize or improve it as needed for your project.
That’s all for setting up the Sense System. You can now drag the actor into the scene and test it.