当前位置:网站首页>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 !
边栏推荐
- The second game of the 12th provincial single chip microcomputer competition of the Blue Bridge Cup
- Which product of anti-cancer insurance is better?
- Jetpack之LiveData扩展MediatorLiveData
- Monkey test
- Nacos 配置中心整体设计原理分析(持久化,集群,信息同步)
- 跳出舒适区,5年点工转型自动化测试工程师,我只用了3个月时间
- The 5th Blue Bridge Cup single chip microcomputer provincial competition
- The original author is out! Faker. JS has been controlled by the community..
- 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
- Go function
猜你喜欢

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

Flutter中深入了解MaterialApp,常用属性解析

蓝桥杯单片机省赛第五届

Lost a few hairs, and finally learned - graph traversal -dfs and BFS

【小技巧】使用matlab GUI以对话框模式读取文件

Wpviewpdf Delphi and Net PDF viewing component

Pandora IOT development board learning (RT thread) - Experiment 1 LED flashing experiment (learning notes)

《动手学深度学习》(二)-- 多层感知机
![[live broadcast review] the first 8 live broadcasts of battle code Pioneer have come to a perfect end. Please look forward to the next one!](/img/46/d36ae47c3d44565d695e8ca7f34980.jpg)
[live broadcast review] the first 8 live broadcasts of battle code Pioneer have come to a perfect end. Please look forward to the next one!

【直播回顾】战码先锋首期8节直播完美落幕,下期敬请期待!
随机推荐
蓝桥杯单片机省赛第六届
蓝桥杯单片机省赛第十一届
pip 安装第三方库
Go language naming specification
Go variables and constants
集成底座方案演示说明
Fourier series
初识P4语言
WPViewPDF Delphi 和 .NET 的 PDF 查看组件
Raspberry pie GPIO pin controls traffic light and buzzer
[untitled]
Homework in Chapter 3 of slam course of dark blue vision -- derivative application of T6 common functions
Jetpack's livedata extension mediatorlivedata
蓝桥杯单片机第四届省赛
向数据库中存入数组数据,代码出错怎么解决
C language: examples of logical operation and judgment selection structure
Object oriented thinking
Blue Bridge Cup SCM digital tube skills
【leetcode】34. Find the first and last positions of elements in a sorted array
蓝桥杯单片机省赛第八届