Hello!
My RayCastHit2D is hitting the Backgrund. How to Fix that?
RaycastHit2D hit = Physics2D.Raycast (transform.position, Vector2.down);
if (hit.collider != null) {
print (hit.collider.name + " at " + hit.point);
}
EDIT:
If i disable my background in herachy, it works