BZ易风

导航

 

1.

[MenuItem("Tools/获取场景物体")]
    public static void GetGameOjbect()
    {
        GameObject go = UnityEditor.Selection.gameObjects[0];
        Debug.Log(go.name);
    }

 

posted on 2021-11-03 08:53  BZ易风  阅读(250)  评论(0编辑  收藏  举报