Make cube component only work on one object

Hello, you can use object collision channels.

In this case you would have two channels: Big Cubes, and Small Cubes. Each would set the other’s collision variable as “ignore” or “overlap”, instead of “block”.

See more here: Add a Custom Object Type to Your Project in Unreal Engine | Unreal Engine 5.2 Documentation