Not sure what is wrong with my OntriggerEnter code


I am learning Unity and trying to make a door in 2D (just to open for now). I have ran the debug log and it seems to not even execute “OnTriggerEnter”.

We had a thread about the same thing just today: Trigger Script not functioning as expected

My error was that I was not using the 2D versions of OnTriggerEnter and Collider

1 Like