Gradient Shader Works in 2.4.7 But Not in 3.8.2
Cocos
MARCH 28, 2025
I thought by providing information about vertex data of SLICED sprite, you could do the calculation yourself, oh well Heres the code anyway, works for SIMPLE and SLICED sprite: import { _decorator, color, Color, Component, lerp, macro, Sprite, UITransform } from 'cc'; const { ccclass, property } = _decorator; @ccclass('vert_color') export class vert_color extends Component { start() { this.schedule(() => { this.updateColor() }, 1, macro.REPEAT_FOREVER) } randomColor1() { const COLORS = [Colo
Let's personalize your content