Make a trigger collider with a rigidbody trigger another trigger collider?

Basically I have 2 game objects with different layers that both collide with each other.

The objects:

  1. Trigger collider.
  2. Trigger collider + rigidbody.

Is it somehow possible to make object 2. trigger the trigger collider in 1. at enter or do I have to make overlap casts or raycasts?

“Raycast does not hit triggers” needs to be set to false if you want triggers to trigger each other in a overlap, raycast or trigger.

You can access this setting via the Physics2D class in scripts. You can also access this setting in the Physics2D settings of the project.