creator3.2.0 tween UIOpacity问题

tween(root.getComponent(UIOpacity))

        .to(1, { opacity: 0 })

        .union()  //整合成一个union

        .repeat(1)

        .start();

tween(root)

        .to(1, { opacity: 0 })

        .union()  //整合成一个union

        .repeat(1)

        .start();

很简单的一个例子,就想让文字实现渐隐效果,root是传入的Lable,试了这两种写法(或者root.node)都不行,求助怎么写,看了缓动例子类似去写有点懵啊

更正一下,是富文本

富文本在编辑器里面调透明度都没用,换label吧

好吧,谢谢哈~

这是个bug,已经建立issue 进行跟踪排查,如果需要可以,暂时可通过设置标签的color 值来进行修改, 类似 #ffffff ->> #ffffff03; 后两位代表透明度

https://github.com/cocos-creator/engine/pull/8985
这是修复pr,可以合并试下

谢谢,之前无奈一直用的label,现在去试试

要合的话,这三个也一起合了 :rofl:
https://github.com/cocos-creator/engine/pull/9049
https://github.com/cocos-creator/engine/pull/9057
https://github.com/cocos-creator/engine/pull/9103