当前位置:网站首页>如何解决在editor模式下 无法删除物体的问题
如何解决在editor模式下 无法删除物体的问题
2022-07-02 03:58:00 【KillJUMP】
void OnValdidate(){
foreach (Transform child in transform) {
StartCoroutine(DestroyGO(child.gameObject));
}
}
IEnumerator DestroyGO(GameObject go) {
yield return new WaitForSeconds(0);
DestroyImmediate(go);
}在编辑模式下,发现无论用DestroyImmediate或者是Destroy,都会报错,用上面的方法就不报错了。
亲测有效!
边栏推荐
- 蓝桥杯单片机第四届省赛
- [personal notes] PHP common functions - custom functions
- High performance and low power cortex-a53 core board | i.mx8m Mini
- The 6th Blue Bridge Cup single chip microcomputer provincial competition
- Basic syntax of unity script (7) - member variables and instantiation
- Jetpack之LiveData扩展MediatorLiveData
- The second game of the 12th provincial single chip microcomputer competition of the Blue Bridge Cup
- 潘多拉 IOT 开发板学习(RT-Thread)—— 实验1 LED 闪烁实验(学习笔记)
- Nacos 配置中心整体设计原理分析(持久化,集群,信息同步)
- 手撕——排序
猜你喜欢

【无线图传】基于FPGA的简易无线图像传输系统verilog开发,matlab辅助验证
![[designmode] Prototype Pattern](/img/ee/c4e48c2ce8ff66f50f0bf13e5a0418.png)
[designmode] Prototype Pattern

毕设-基于SSM电影院购票系统

蓝桥杯单片机第六届温度记录器

PR zero foundation introductory guide note 2

Opencv learning example code 3.2.4 LUT

滴滴开源DELTA:AI开发者可轻松训练自然语言模型

go 包的使用

Homework in Chapter 3 of slam course of dark blue vision -- derivative application of T6 common functions

JVM知识点
随机推荐
0 foundation how to learn automated testing? Follow these seven steps step by step and you will succeed
Oracle 常用SQL
2022-07-01:某公司年会上,大家要玩一食发奖金游戏,一共有n个员工, 每个员工都有建设积分和捣乱积分, 他们需要排成一队,在队伍最前面的一定是老板,老板也有建设积分和捣乱积分, 排好队后,所有
Hand tear - sort
初识P4语言
高性能 低功耗Cortex-A53核心板 | i.MX8M Mini
The 8th Blue Bridge Cup single chip microcomputer provincial competition
The 5th Blue Bridge Cup single chip microcomputer provincial competition
Vite: scaffold assembly
VS2010 plug-in nuget
Monkey测试
蓝桥杯单片机省赛第十届
Demonstration description of integrated base scheme
Blue Bridge Cup SCM digital tube skills
WPViewPDF Delphi 和 .NET 的 PDF 查看组件
The first game of the 11th provincial single chip microcomputer competition of the Blue Bridge Cup
Pandora IOT development board learning (RT thread) - Experiment 1 LED flashing experiment (learning notes)
Wpviewpdf Delphi and Net PDF viewing component
uni-app - 实现获取手机验证码倒计时 60 秒(手机号+验证码登录功能)
滴滴开源DELTA:AI开发者可轻松训练自然语言模型