Is there a way to stop a prefab behaving as SelectionBase?

Hi there,

I really dig the new prefabs, but I’ve worked with the old ones for so long it’s taking a while to get into them :slight_smile:
Anyway, I was wondering if there’s a way to stop the prefab base from behaving as though it has a Unity - Scripting API: SelectionBaseAttribute on it and overriding the selection.
I decided to try having a prefab for a simple scene hierarchy I reuse in many other scenes but it means that whenever I select an object parented under it, the top level prefab gets selected, which means everything requires another click. Is there a way to remove that?

Thanks!!
Pete

Hi Pete, this is not something we currently support.
You should be able to use https://docs.unity3d.com/ScriptReference/Camera.ScreenToWorldPoint.html to create your own tooling for this.
Let us know if you need more assistance.

I don’t really have the time to retool stuff at the moment, but thanks for the heads up.
I’m thinking it might be dangerous anyway to have a prefab as the parent of every scene so I’m just going to remove the prefab for this case. Most of the time I like the way the parent will get selected but every now and then it gets a bit annoying.
Even if it was another attribute, some other selection options might be handy in future.

Thanks!
Pete

1 Like