Skip to content

Instantly share code, notes, and snippets.

@tm8r tm8r/SelectType.cs
Created Oct 20, 2016

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
You can’t perform that action at this time.