I've implemented a custom check-button in my game. The check-button consists of a sprite and a text object.
If the mouse clicks on either the sprite or the text, the button's state is toggled.
Sometimes a check-button is set to invisible. And while invisible, I disable the sprite's collision, so that clicking on it will have no effect. But for some reason, I can't disable collisions on the text object from what I can tell.