I create a new project. I put a blank terrain and the FPS controller in the scene. I create a cube GameObject and check the isTrigger box. I add this code to the cube:
void OnTriggerEnter(Collider other)
{
Debug.Log("Entering");
}
void onTriggerExit(Collider other)
{
Debug.Log("Exiting");
}
The entering message displays on every enter but the exiting message never does. I tried removing the OnTriggerEnter. I tried adding a rigid body to the cube, checked isKinematic, changed to continuous dynamic. I tried without the FPS controller, just using a cube game object with a rigid body. None of this worked.
What am I doing wrong?