How to do it...

  1. Start by creating a unique collision Channel for the Item object's collision primitive. This is under Settings | Project Settings | Collision:
  1. Once there, create a new Object Channel by going to New Object Channel....
  2. Name the new Object Channel Item and set the Default Response to Overlap. Afterwards, hit the Accept button:
  1. Take your Item actor and select the primitive component on it that is used to intersect for pickup with the player avatar. From the Details tab, go to the Collision section and under Collision Presets ...

Get Unreal Engine 4.x Scripting with C++ Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.