NewProject_4.zip (14.2 KB)
-
Creator 版本: 3.8.1
-
重现方式:在父类上挂一个自定义组件,
NewComponent.ts内容如下:
import { _decorator, Component, Node, tween, v3 } from 'cc';
const { ccclass, property } = _decorator;
@ccclass('NewComponent')
export class NewComponent extends Component {
protected onEnable(): void
{
this.node.scale = v3();
tween(this.node)
.to(0.15,{scale:v3(1.2,1.2,1)})
.to(0.1,{scale:v3(1,1,1)})
.start();
}
}
子节点上挂widget
运行后SpriteSplash的位置不对
- 重现概率: 100%