79447178

Date: 2025-02-18 05:10:52
Score: 1
Natty:
Report link

Use Tags for gameobjects which need to ignored then on the on ontrigeerenter method just check for the tag ignore it

  void OnTriggerEnter(Collider other) {
    if (other.gameObject.tag != "<-tag need to be igonred->") {
      // Your work for here
    }
  }
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Charith Fernando