OnTriggerEnter has to be of type Collider.... is of type Collider

Hi,

I’m getting the following error to this code.

I can’t get my head around why it’s asking me to use a message parameter of type Collider, when the message parameter IS of type Collider… it’s driving me mad.

For reference, I’m working in 3D with 3D colliders so it’s nothing to do with 2D.

Any suggestions would be greatly appreciated, I’ve spent all day trying to figure this out…!

May be you have a naming collision i.e. some other namespace containing type named Collider appears in usings? Try typing full type name UnityEngie.Collider

Thank you so much, you have saved me from insanity!

I don’t know why, but I had another script class called Collider. Problem solved :slight_smile: