Get the object behind my gameobject by rayCast

Hi,
I’m using rayCast in order to get the object behind my gameObject.
The probleme is that it returns only my gameObject.
Do you know how to solve it in order to get the object behind my gameobject ?
thks :slight_smile:

  RaycastHit2D hitInformation = Physics2D.Raycast(transform.position, Camera.main.transform.forward);

use RaycastAll instead and filter your object out. the remaining result should contain the one you’re looking for