diff --git a/Runtime/UIParticle.cs b/Runtime/UIParticle.cs index 9aeea47..0ef5474 100644 --- a/Runtime/UIParticle.cs +++ b/Runtime/UIParticle.cs @@ -481,6 +481,8 @@ namespace Coffee.UIExtensions for (var i = 0; i < childCount; i++) { var go = transform.GetChild(i).gameObject; + if (go.TryGetComponent(out var cam) && cam == _bakeCamera) continue; + if (go.TryGetComponent(out var _)) continue; go.SetActive(false); if (destroyOldParticles) {