Trigger Once

Once again like many others before me: My trigger works once and no more. I only have a Debug message in the OnTriggerEnter and OnTriggerExit, but it calls only once.

There’s 2 different objects in this case: 1 spawner and 1 block. The spawner has a regular collider on it. The block has a regular collider ánd a Sphere Collider as Trigger. Once the player spawns a block using the spawner, OnTriggerEnter is called and as soon as the player moves the spawner away from the just-spawned block, OnTriggerExit is called as it is supposed to. When the player again moves the spawner into the block, nothing happens at all. This is the same with moving already spawned blocks into eachother.

The following part of script is situated on both the spawner and the block:

void OnTriggerEnter(Collider other)
 {
 if(other.gameObject.tag=="Block")
 {
 Debug.Log("TRIGGER ENTER");
 }
 
 }
 void OnTriggerExit(Collider other)
 {
 if(other.gameObject.tag=="Block")
 { 
 Debug.Log("TRIGGER EXIT");
 }
 
 }

I have also tried this without the tag check, but that gives the same result.
Does anyone have an idea what could cause this and how I would be able to fix this issue?

Make sure you have “Is trigger” check-box checked on your box collider or what ever you are using.

Make sure the rigidBodies are not falling asleep. I don’t think triggers wake up their rigidbody on collision since they are not part of the physics calculation.