Created
October 20, 2016 11:04
-
-
Save tm8r/c2deea19745faa8b4424e12f4e966bc9 to your computer and use it in GitHub Desktop.
SelectType
This file contains 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 characters
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