在editor模式下遍历unity3d builtsetti
foreach (UnityEditor.EditorBuildSettingsScene S in UnityEditor.EditorBuildSettings.scenes)
{
//在built setting中是否已经开启
if(S.enabled)
{
//得到场景的名称
string name = S.path;
//打开这个场景
EditorApplication.OpenScene(name);
//遍历场景中的GameObject
foreach (GameObject obj in Object.FindObjectsOfType(typeof(GameObject)))
{
}
}
}
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。