How can I make sure that only a parent object can be selected

Sorry if this is in the wrong place “Strange IoC” is the only topic that would show up. I’m working on a dice game where I have six die. Each one of them has an empty object on each side (used to determine which side is facing up). Is there a way I can make the dice selectable but not the empty objects but, still be detected by a raycast? Also is there a better way of detecting faces of dice? I’m sure there are better ways as this is something I thought of and this is my first game. tia

I’m not sure if by “selectable” you mean in the editor or in the game itself,although you probably mean in the game, and in that case it would be good to see your code for selecting the die in-game to answer that, and

Hi,
This tutorial solve my problem:

Sorry I meant to mention that I need it to be selectable in game. I will post my code when I get back home. Basically I have 6 dice total two white ones and four colored dice and I need the user to be able to select one white die and one colored die then in a separate script the value of those two dice will be added together to get a score.