From 3b71bf69353bbd0aca70ce1ca5af4c8f9652ca90 Mon Sep 17 00:00:00 2001 From: zxx43 Date: Sat, 5 Sep 2026 18:58:01 +0800 Subject: [PATCH] fix particle2d preview error (#326) --- cocos/particle-2d/particle-system-2d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocos/particle-2d/particle-system-2d.ts b/cocos/particle-2d/particle-system-2d.ts index 32caeffb66..dc095ebaf1 100644 --- a/cocos/particle-2d/particle-system-2d.ts +++ b/cocos/particle-2d/particle-system-2d.ts @@ -797,7 +797,7 @@ export class ParticleSystem2D extends UIRenderer { } private _startPreview (): void { - if (this._preview) { + if (!this._preview) { this.resetSystem(); } }