当前位置:网站首页>How to solve the problem that objects cannot be deleted in Editor Mode
How to solve the problem that objects cannot be deleted in Editor Mode
2022-07-02 04:01:00 【KillJUMP】
void OnValdidate(){
foreach (Transform child in transform) {
StartCoroutine(DestroyGO(child.gameObject));
}
}
IEnumerator DestroyGO(GameObject go) {
yield return new WaitForSeconds(0);
DestroyImmediate(go);
}
In edit mode , Find no use DestroyImmediate Or is it Destroy, All will report wrong. , If you use the above method, you will not report an error .
Close test effectively !
边栏推荐
- Lost a few hairs, and finally learned - graph traversal -dfs and BFS
- 蓝桥杯单片机省赛第十二届第二场
- Welcome the winter vacation multi school league game 2 partial solution (B, C, D, F, G, H)
- 初识string+简单用法(二)
- go 语言命名规范
- [wireless image transmission] FPGA based simple wireless image transmission system Verilog development, matlab assisted verification
- pip 安装第三方库
- How to model noise data? Hong Kong Baptist University's latest review paper on "label noise representation learning" comprehensively expounds the data, objective function and optimization strategy of
- 【IBDFE】基于IBDFE的频域均衡matlab仿真
- 毕设-基于SSM电影院购票系统
猜你喜欢
Set vscode. When double clicking, the selected string includes the $symbol - convenient for PHP operation
Suggestions on settlement solution of u standard contract position explosion
Wpviewpdf Delphi and Net PDF viewing component
[tips] use Matlab GUI to read files in dialog mode
The 5th Blue Bridge Cup single chip microcomputer provincial competition
The 7th Blue Bridge Cup single chip microcomputer provincial competition
接口调试工具模拟Post上传文件——ApiPost
Installation et utilisation du lac bleu
The 9th Blue Bridge Cup single chip microcomputer provincial competition
The second game of the 12th provincial single chip microcomputer competition of the Blue Bridge Cup
随机推荐
文档声明与字符编码
《西线无战事》我们才刚开始热爱生活,却不得不对一切开炮
SQL:常用的 SQL 命令
Wechat applet - realize the countdown of 60 seconds to obtain the mobile verification code (mobile number + verification code login function)
【无线图传】基于FPGA的简易无线图像传输系统verilog开发,matlab辅助验证
regular expression
Go branch and loop
Imageai installation
[personal notes] PHP common functions - custom functions
ImageAI安装
Nacos 配置中心整体设计原理分析(持久化,集群,信息同步)
pip 安装第三方库
Sword finger offer II 006 Sort the sum of two numbers in the array
微信小程序 - 实现获取手机验证码倒计时 60 秒(手机号+验证码登录功能)
The fourth provincial competition of Bluebridge cup single chip microcomputer
Three ways for programmers to learn PHP easily and put chaos out of order
How to solve the code error when storing array data into the database
go 包的使用
【人员密度检测】基于形态学处理和GRNN网络的人员密度检测matlab仿真
The first game of the 11th provincial single chip microcomputer competition of the Blue Bridge Cup