Mouse Orbit with colliderbox

Hello Unity!

I've got this problem... I use a Orbit control to move my camera around my model, but I only want it to move if my mouse is on the model (Like useing a Collider). I want this to use my GUI because at the moment I use this

`if (Input.GetMouseButton(0))`

And that works fine for me but when ever I try to use one of my sliders the camera moves...

If you have an other way to fix this (Not using a Collider) please tell me.

Nevermind, I fixed my problem useing a static var.