Gradient Disappears when Node is opened again
Cocos
SEPTEMBER 25, 2024
I’ve used following file to set the gradient on a node. The gradient is applied correctly the first time, but when I reopen the node, the background becomes white. This is the code of ColorAssembler2D.ts file import Logs from " /Logs"; const { ccclass, property,/* executeInEditMode,*/ requireComponent, menu } = cc._decorator; @ccclass // @executeInEditMode @requireComponent(cc.RenderComponent) @menu('i18n:MAIN_MENU.component.renderers/ColorAssembler2D-lamyoung.com') export defa
Let's personalize your content