📜  无法删除 RectTransform 因为图像(脚本),图像(脚本)依赖于它 - 无论代码示例

📅  最后修改于: 2022-03-11 14:59:17.134000             🧑  作者: Mango

代码示例1
//You Have to Destroy what ever u want but add .gameobject after
Gameobject x; //x is what ever u want to destory if its ui object u can destory it 
Destroy(x.gameobject);