From 548dbefd2e0f013cf3fad1ff73f0307e69a99763 Mon Sep 17 00:00:00 2001 From: ChiaNing Date: Wed, 24 May 2023 17:30:29 +0800 Subject: [PATCH] fix rich text render bug (#15081) --- cocos/2d/components/rich-text.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/cocos/2d/components/rich-text.ts b/cocos/2d/components/rich-text.ts index 51b78664c9..6ee65a2ef4 100644 --- a/cocos/2d/components/rich-text.ts +++ b/cocos/2d/components/rich-text.ts @@ -97,6 +97,7 @@ function getSegmentByPool (type: string, content: string | SpriteFrame) { node = new Node(type); } node.hideFlags |= CCObject.Flags.DontSave | CCObject.Flags.HideInHierarchy; + node.active = true; // Reset node state when use node if (type === RichTextChildImageName) { seg.comp = node.getComponent(Sprite) || node.addComponent(Sprite); seg.comp.spriteFrame = content as SpriteFrame;