集合首页和详情页
This commit is contained in:
1 parent
16b42a19e4
commit
ec4a28cd2a
66 files changed
+10600
-818
No files matched your search
@@ -290,14 +290,13 @@ namespace Assets.Scripts
|
||||
}
|
||||
}
|
||||
/*删除父亲节点下的所有孩子*/
|
||||
static public void DestroyChildren(this Transform t)
|
||||
static public void DestroyChildren(this Transform t,string igNoreName = null)
|
||||
{
|
||||
bool isPlaying = Application.isPlaying;
|
||||
|
||||
while (t.childCount != 0)
|
||||
{
|
||||
Transform child = t.GetChild(0);
|
||||
|
||||
if (isPlaying)
|
||||
{
|
||||
child.SetParent(null);
|
||||
|
||||
Reference in new issue
Block a user