Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ private void Awake()
Debug.Assert(_container != null, "_container must be assigned in prefab");
Debug.Assert(_containerImage != null, "_containerImage must be assigned in prefab");

// Prefab contains preview badges for editor inspection; remove them before runtime
// Prefab keeps preview badges for editor inspection, but runtime badges must start empty.
for (int i = _container!.transform.childCount - 1; i >= 0; i--)
{
Destroy(_container.transform.GetChild(i).gameObject);
DestroyImmediate(_container.transform.GetChild(i).gameObject);
}

_container.SetActive(false);
Expand Down
Loading
Loading