Created
October 20, 2016 11:04
-
-
Save tm8r/c2deea19745faa8b4424e12f4e966bc9 to your computer and use it in GitHub Desktop.
Revisions
-
tm8r created this gist
Oct 20, 2016 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,17 @@ 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; } }