[LayaAirIDE 2.0]timer.loop里面修改Text.text在微信小程序上用iPhone打开出现闪屏
如题,
this.myTest = new Laya.Text()
this.myTest.pos(0, 0)
this.myTest.size(100, 100)
this.myTest.fontSize = 13
this.myTest.color = "#ffffff"
this.myTest.align = "center"
this.addChild(this.myTest)
this.timer.loop(10, this, this.timerClick)
timerClick() {
this.myTest.changeText("改变的文本")
}
this.myTest = new Laya.Text()
this.myTest.pos(0, 0)
this.myTest.size(100, 100)
this.myTest.fontSize = 13
this.myTest.color = "#ffffff"
this.myTest.align = "center"
this.addChild(this.myTest)
this.timer.loop(10, this, this.timerClick)
timerClick() {
this.myTest.changeText("改变的文本")
}
没有找到相关结果
已邀请:
要回复问题请先登录
1 个回复
tylerzhu
赞同来自: