Make GameObject not selectable on Editor Mode

I have a GameObject that contains a child GameObject (which has the mesh information).

Whenever I select the visible GameObject, the child is automatically selected, but I want the parent to be the one being selected.

Why I’m doing that instead of directly using the child object is because I don’t like the MeshFilter and MeshRenderer components being visible. The parent GameObject has none of those scripts. So, I want to hide information.

If that isn’t possible, is there a way to attach mesh information to a GameObject without using the MeshFilter component?

alt text

You can use Unity - Scripting API: SelectionBaseAttribute which will Add this attribute to a script class to mark its GameObject as a selection base object for Scene View picking.

not exactly what you are looking for, but i use Unity Asset Store - The Best Assets for Game Making and it helps a lot