Cocos Creator 3.0.0 tween 动画播放不了

@property(RichText)

text: RichText | any

tween(this.text)

    .repeatForever(

        tween()

        .to(1, {opacity : 0})

        .to(1, {opacity : 255})
    )
    .start();

那个大佬帮忙看一下

image
实现的功能也挺简单,叫这个字来回闪烁一下,可是动画老是不动?tween用错了吗?还是那有问题
那个大佬帮忙看一下

@wangzhe @panda @jare @308303735

.repeatForever(

    tween(/*这里应该填写个 this.text*/)

    .to(1, {opacity : 0})

    .to(1, {opacity : 255})
)
.start();

tween(this.text)

    .repeatForever(

        tween(this.text)

        .to(1, {opacity : 0})

        .to(1, {opacity : 255})

    )

    .start();

修改完也还是 没有动

给 richtext 节点添加 UIOpacity 组件:
image

修改 opacity 参数 添加 UIOpacity
假如修改 position,sclae… 添加什么组件呀?
3.0这个是不是有问题呀?

参考:https://docs.cocos.com/creator/3.1/manual/zh/release-notes/upgrade-guide-v3.0.html

  • tween
    • 变更接口: cc.repeatForever -> Tween.repeatForevercc.reverseTime -> Tween.reverseTimecc.show -> Tween.show 等。

光是aip换了 ,也没有说使用的时候变化呀?

假如我修改修改一下坐标,怎么移动不了?
tween(this.text)

        .by(1, { position: new Vec3(-50,0,0) })

        .call(() => {

            // this.text.node.position.x=pox

        })

    .start()

你这个 this.text 是 组件吧。改成 this.text.node;

tween执行的动作修改参数,必须是执行对象有这个参数

该主题在最后一个回复创建后14天后自动关闭。不再允许新的回复。