void OnTriggerEnter is not running.

The void OnTriggerEnter is runnuing

i’m walking with the character and when i collide with the OnTriggerEnter, i have no answers.
When i activate the Trigger object collision or the character collision, it doesn’t work.

this is my code:

void OntriggerEnter(collider collider){
          print("Enter");
}

first Collider needs upper case C (Collider collider)

void OnTriggerEnter(Collider collider)
{

Debug.Log("working");

}
1 Like

your “t” in trigger should be upper Case also, just copy paste my code

1 Like

I don’t know.
I Will teste

The same mistake yet. I tried Collider with upper case and it doesn’t work

Remember with colliders, you’ll need one to be a trigger(For OnTriggerEnter) and at least one of the two gameobjects needs a rigidbody.