You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you destroy all the child elements of a transform that contains several hundred GameObjects with UIBlock2D components, multiple identical exceptions may occur.
public static int ClearChilds(this Transform transform)
{
int childCount = transform.childCount;
for (int i = childCount - 1; i >= 0; i--)
{
GameObject go = transform.GetChild(i).gameObject;
go.Destroy();
}
return childCount;
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Nova 2.1.3
If you destroy all the child elements of a transform that contains several hundred GameObjects with UIBlock2D components, multiple identical exceptions may occur.
Exception:
Code for destroying objects:
Beta Was this translation helpful? Give feedback.
All reactions