Eddie V (killzone)

0 answers · asked · Lesson: Detecting Collisions and Trigger Zones · Course: Game C# Programming Bootcamp

No message at 10min 20sec of the video

Hello,

I have done the tutorial so far but I don't get a debug message at OnTriggerEnter with Player Tag...


    void OnTriggerEnter (Collider col)

    {

        if(col.CompareTag("Player"))

        {

        Debug.Log("We have detected a player collider");

        }

    }

I am using Unity 5.6.5f1 due to company policies.


UPDATE: Sorry... but never mind... The cube was not set on "Is Trigger" :(