Skip to content

Instantly share code, notes, and snippets.

@beardordie
Created March 24, 2020 01:43
Show Gist options
  • Save beardordie/1086889a86b8bbb4a90b6d2180fc6492 to your computer and use it in GitHub Desktop.
Save beardordie/1086889a86b8bbb4a90b6d2180fc6492 to your computer and use it in GitHub Desktop.
Unity - If you want a root GameObject to be selected when you click on a child object such as a mesh, put this MonoBehaviour on the root
using UnityEngine;
[SelectionBase]
public class SelectionBase : MonoBehaviour {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment