Created
March 7, 2024 10:06
-
-
Save unitycoder/72a178da5003b74a850d646b6ffcfbc6 to your computer and use it in GitHub Desktop.
Revisions
-
unitycoder revised this gist
Mar 7, 2024 . No changes.There are no files selected for viewing
-
unitycoder created this gist
Mar 7, 2024 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ // https://discussions.unity.com/t/how-to-i-force-the-selection-of-a-parent-when-a-child-is-selected-in-the-editor/36493 // other manual option is to lock children with L key: https://www.reddit.com/r/Unity3D/comments/129oc5n/scene_view_select_parent_solved_thank_the_maker/ // attach into root gameobject, to make it always select root instead of children using UnityEngine; [SelectionBase] public class SelectionBase : MonoBehaviour { }