Hey! So i just recently asked a question about my objects not colliding and found out that I should be using rigidbody2D instead. After changing it I wanted to use onEnterCollision2D to tell when it hits something.
void onCollisionEnter2D(Collision2D collision)
{
Debug.Log("Hit");
}
However when I attach this to my Player object, my console stays blank and nothing else happens. Ive tried changing it to
void onTriggerEnter2D(Collision2D collision)
{
Debug.Log("Hit");
}
while also toggling âis Triggerâ on my Player object and nothing happens still. Iâve attached a Boxcollider2D and a Rigidbody2D to both objects and even though they clearly collide and physics happens, the console still stays blank.
this is a pretty close question to my last one so I apologize for somewhat asking it again, but Iâve watched about 10 different tutorials that all have these same exact codes working just fine.
This is my Object
And this is my Player
Thank you so much, and if there is any more information I can provide just let me know.

