using UnityEngine;
using System.Collections;
using UnityEditor;
using UnityEngine.SceneManagement;
public class SelectionEditorDataInspector : Editor
{
[MenuItem("Tools/删除场景触发器")]
static void NewSelectionTest1()
{
GameObject[] objs = (GameObject[])Resources.FindObjectsOfTypeAll(typeof(GameObject));
foreach (var obj in objs)
{
//to do
}
}
}