How can I change a collider to stop highlighting selected objects?

I want to select a few objects in the scene, so i put a collider in each. With that i can use OnMouseUp and Down to handle selection, the problem is the collider changes the material of the selected object to show it’s selected.

I don’t want that behavior, but couldn’t find any property to change on the colliders that allows me to do that, i’ve also tried changing the colliders themselves and that seems like the default behavior for all of them.

I’m sure it’s something really simple that i’m missing.

Thank you in advance!

I don’t think there is any possible way for the collider alone to be responsible for changing the material. I am 99% sure that if you look at the code with the mouse up and down scripts, you will find your problem.

The collider changes the material even when i only attach no other component but a collider. If i create some simple default objects like cubes and spheres they all already come with a collider and has the same behavior (even the same collor) when I click on them.

My script does try to change the material of the object, but the collider gets in the way which is why i want to disable.

This is 100% your script doing it.

Sorry guys, my (soon to be dead) co worker have put code on our camera navigation script a few months ago and never told me about it, not even when he saw what was happening when i tried selecting things… I spent all this time thinking that goddamned green tint was unity’s default, because even when i created objects with no script they would get tinted xD