Skip to content

Instantly share code, notes, and snippets.

@tm8r
Created October 20, 2016 11:04
Show Gist options
  • Save tm8r/c2deea19745faa8b4424e12f4e966bc9 to your computer and use it in GitHub Desktop.
Save tm8r/c2deea19745faa8b4424e12f4e966bc9 to your computer and use it in GitHub Desktop.
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