Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
using UnityEngine;
using UnityEditor;
public class SelectType : MonoBehaviour
[MenuItem ("Tools/SelectType #t")]
static void SelectViewerSetting ()
var target = FindObjectOfType<Light> ();
if (target == null) {
Debug.Log ("not found");
Selection.activeGameObject = target.gameObject;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment