当前位置:网站首页>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 !
边栏推荐
- [source code analysis] NVIDIA hugectr, GPU version parameter server - (1)
- It took me only 3 months to jump out of the comfort zone and become an automated test engineer for 5 years
- The 5th Blue Bridge Cup single chip microcomputer provincial competition
- u本位合约爆仓清算解决方案建议
- 树莓派GPIO引脚控制红绿灯与轰鸣器
- The first game of the 11th provincial single chip microcomputer competition of the Blue Bridge Cup
- NLog use
- 蓝桥杯单片机省赛第十一届第一场
- Analysis of the overall design principle of Nacos configuration center (persistence, clustering, information synchronization)
- Blue Bridge Cup SCM digital tube skills
猜你喜欢

蓝桥杯单片机省赛第十二届第一场

Déchirure à la main - tri

接口调试工具模拟Post上传文件——ApiPost

Learn more about materialapp and common attribute parsing in fluent

Visual slam Lecture 3 -- Lie groups and Lie Algebras

潘多拉 IOT 开发板学习(RT-Thread)—— 实验1 LED 闪烁实验(学习笔记)

蓝桥杯单片机省赛第八届

The 6th Blue Bridge Cup single chip microcomputer provincial competition

MD5 of Oracle

PIP installation of third-party libraries
随机推荐
蓝湖的安装及使用
[untitled]
Jetpack's livedata extension mediatorlivedata
SQL Yiwen get window function
如何解决在editor模式下 无法删除物体的问题
MySQL error: expression 1 of select list is not in group by claim and contains nonaggre
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
软件测试人的第一个实战项目:web端(视频教程+文档+用例库)
《动手学深度学习》(二)-- 多层感知机
The 9th Blue Bridge Cup single chip microcomputer provincial competition
Microsoft Research Institute's new book "Fundamentals of data science", 479 Pages pdf
[tips] use Matlab GUI to read files in dialog mode
Fluent icon demo
It took me only 3 months to jump out of the comfort zone and become an automated test engineer for 5 years
Déchirure à la main - tri
Hand tear - sort
Sword finger offer II 006 Sort the sum of two numbers in the array
Flutter中深入了解MaterialApp,常用属性解析
2022-07-01:某公司年会上,大家要玩一食发奖金游戏,一共有n个员工, 每个员工都有建设积分和捣乱积分, 他们需要排成一队,在队伍最前面的一定是老板,老板也有建设积分和捣乱积分, 排好队后,所有
【直播回顾】战码先锋首期8节直播完美落幕,下期敬请期待!