- Home /
Clicking on a prefab object in scene view either selects ground behind it or the prefab child
I've been looking for a solution for hours and it's driving me crazy... I have this scene with block prefabs to quickly prototype a level, and every block object is like this:
Block (root empty object) --> Cube (child)
Every time I click on one of these, it always selects the ground underneath first, and then the Cube (child) instead of selecting the Block (root). It does the same thing when I click on a ThirdPersonController prefab; it selects the rigidbody (child) instead of the root object... I've tried to add a SelectionBase attribute in a script to the Block empty object in the prefab but it doesn't change a thing.
What can I do to solve this?
Answer by victorbisaev · Jan 30, 2018 at 05:47 PM
What Unity documentations says is: "In the Unity Scene View, when clicking to select objects, Unity will try to figure out the best object to select for you. If you click on an object that is part of a prefab, the root of the prefab is selected, because a prefab root is treated as a selection base.".
So maybe please re-investigate your setup.
Your answer
Follow this Question
Related Questions
Make a simple tree 1 Answer
select object in scene view 1 Answer
Prefab Transform & Light Child Transform 1 Answer
Instantiate a Prefab as child 0 Answers
If I make changes to a prefab in the Project tab, do I have to save the scene, too? 1 Answer