UE4 picks up items highlighted

UE4 series article directory

foreword

First look at the effect, when the character approaches the backpack and then looks at the backpack, the backpack will be highlighted.
insert image description here

1. How to achieve

1. Create a blueprint interface for the selected item
In the "Content" window, right-click to select "Blueprint" -> Blueprint Interface, name it PickUpSystem
insert image description here
2. Add a post-processing volume cube
"Visual Effects" -> "Post-processing volume" and drag it into the scene In
insert image description here
the details panel: find "Post-processing volume settings" -> "Infinite range (limited)" tick, so that items can be picked up in the scene
insert image description here
insert image description here

3. Set the collision detection of picked up items,
insert image description here

insert image description here
"Collision Preset", "Collision Enabled", "Object Type" Note that these options must be set correctly, otherwise the picked item cannot be highlighted
insert image description here

4. Specific blueprint
insert image description here

Guess you like

Origin blog.csdn.net/aoxuestudy/article/details/132283089