void ChangeLayerInCurrentScene() { //レイヤー設定を変える AdvEngine engine = UtageEditorToolKit.FindComponentAllInTheScene <AdvEngine>(); SwapLayerInChildren(engine.gameObject, OldLayerName, layerName); SwapLayerInChildren(engine.gameObject, OldLayerNameUI, layerNameUI); BootCustomProjectSetting projectSetting = UtageEditorToolKit.FindComponentAllInTheScene <BootCustomProjectSetting>(); SwapLayerInChildren(projectSetting.gameObject, OldLayerNameUI, layerNameUI); foreach (Camera camera in projectSetting.GetComponentsInChildren <Camera>()) { ChangeCameraLayer(camera); } }