Destroy 和 DestroyImmediate 的区别

Destroy 和 DestroyImmediate 的区别 使用destroy时,对象不会被立刻删除。web Debug.log("删除前的子节点数量为:"+parent.childCount) //假设有5个子节点,则此时显示为5 GameObject.Destroy(parent.GetChild(0)) Debug.log("删除后的子节点数量为:"+parent.childCount)
相关文章
相关标签/搜索