Search code examples
c#unity-game-enginecollider

OnTriggerEvent doesn't detect some objects


I have object (ball) that is prefab initialized on game start. On that prefab i have Script, Mesh renderer and Sphere collider. Now when i cast my Spell, it is normally colliding with me and OnTriggerEvent detect character (me) but not the ball. Why is that?

If you need any part of code or something ask me.


Solution

  • For Trigger, you have to keep in mind this table enter image description here

    Ensure that isTriggerEnter is checked on ball. ref