Can Collider triggerde by different objects?

As we know,there is a property “Is Trigger” in Box Collider Component(also in other Colliders like Sphere Collider,Mesh Collider ect…).

If it’s true,that will let other colliders to go through the it,or it will reject other colliders.

But what I want is for example: The Cube Object can let the Sphere Ojbect go through it,but reject the Capsule Object.All of there Objects have to stand on the ground

Is there any way to do that?

Try using collision layers! make the cube object be on layer ‘CollidesWithCapsules’, the sphere on layer ‘spheres’ and the capsule on layer ‘capsules’, then in the Physics Settings set ‘CollidesWithCapsules’ to collide with ‘capsules’ and not with ‘spheres’.