OnTriggerEnter

Hey

I got a ball falling trough a Box, like the tutorial, did everything like the tutorial… nothing happens

using System.Collections;

using UnityEngine;

public class IsRange : MonoBehaviour {

void OnTriggerEnter(Collider col){

	Debug.Log ("Collision");} 

}

I have Rigid Body on both objects.
I have the Is Trigger Checked on both Objects.
Both Objects have the script attached.

Got no output from the script, no Log Message no nothing any idea?

I’m using Unity 3D 5.5.0f3.

Thanks in advance

Your code snippet is called IsRange, yet your screenshots appear to show a component called IRange. Are you sure you’ve attached the right script?

Try finding the trigger with a conditional statement

    public void OnTriggerEnter(Collider other)
    {
        if (other.tag == "Player")
            print("Player found");
    }

Set your cube as other and put this script onto sphere to differentiate.