Create a gist now

Instantly share code, notes, and snippets.

SelectType
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");
return;
}
Selection.activeGameObject = target.gameObject;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment