So I have this 2D game and I want the bullets to not collide with terrain walls. They should get destroyed when they touch it but I can’t get them destroyed. Any help?
I also have this script I made to try and destroy them.
you don’t need to add (Clone) to the prefab name. also, you can assign TAG and then use bullet.comparetag(“bullet”). check this: Unity - Scripting API: Component.CompareTag