- Home /
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?
Answer by tarasfromlviv · Oct 21, 2016 at 08:40 AM
You can use https://docs.unity3d.com/ScriptReference/SelectionBaseAttribute.html which will Add this attribute to a script class to mark its GameObject as a selection base object for Scene View picking.
Answer by komodor · Nov 30, 2013 at 11:12 AM
not exactly what you are looking for, but i use https://www.assetstore.unity3d.com/#/content/4851 and it helps a lot
This link is broken now. Do you remember what the asset was called ?