diff --git a/Scripts/UIParticle.cs b/Scripts/UIParticle.cs index 3625105..0e7de0f 100644 --- a/Scripts/UIParticle.cs +++ b/Scripts/UIParticle.cs @@ -582,7 +582,16 @@ namespace Coffee.UIExtensions // When render mode is ScreenSpaceOverlay, use ortho-camera. if (!_orthoCamera) { - _orthoCamera = GetComponentInChildren(); + // Find existing ortho-camera. + foreach (Transform child in transform) + { + var cam = child.GetComponent(); + if (cam && cam.name == "[generated] UIParticleOverlayCamera") + { + _orthoCamera = cam; + break; + } + } // Create ortho-camera. if (!_orthoCamera)