Search Unity

Question Is there a way for scene object picking to respect Sorting Layer order?

Discussion in 'Editor & General Support' started by noeski, Feb 15, 2024.

  1. noeski

    noeski

    Joined:
    Nov 10, 2015
    Posts:
    5
    Often times when clicking in the SceneView the object that is selected is not what I am expecting since it is based on hierarchy order and a number of other things, but it does not match what is being rendered in the SceneView.

    I am aware that there are some hacky ways to override the behavior of SceneView selection (see https://forum.unity.com/threads/fil...ditor-tool-how-to-do-custom-selection.516897/) but is there any way to add Sorting Layers into the equation so that clicking through in the SceneView will better match what I am seeing on screen?
     
    Kurt-Dekker likes this.