大约有 1,702 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0064 秒)
Laya_社区(1360) Laya3.0_api(81) Laya2.0_api(74) laya_api(69) Laya2.0_文档(43) Laya_示例(36) Laya2.0_示例(20) Laya3.0_文档(19)
...示文本的初始化内容 } onStart(): void { let page: number = 1; Laya.timer.frameLoop(10, this, () => { page += 1; //在定时器中让变量page每次自增1 this.txt.setVar("n", page); //使用setVar方法,让text文本中变量n的值动态改变 }); } } 效果如动图1-6所示: (...
来源: Laya3.0_文档 发布时间: 20251010
...e.mouseY - this.lastMouseY; } public get deltaTime(): number { return Laya.timer.delta / 1000; } public deltaWheel: number = 0; public FORWORD: Vector3 = new Vector3(); public get GetForward(): Vector3 { this.transform.getForward(this.FORWORD); return this.FORWORD } protected lastMouseX: number = 0;...
来源: Laya_社区 发布时间: 20170714
... let self = this; Laya.timer.loop(300, null, function () { console.log('8: ' + self.particleSystem.aliveParticleCount); }); } } } } ...
来源: Laya_社区 发布时间: 20170605
...e.mouseY - this.lastMouseY; } public get deltaTime(): number { return Laya.timer.delta / 1000; } public deltaWheel: number = 0; public FORWORD: Vector3 = new Vector3(); public get GetForward(): Vector3 { this.transform.getForward(this.FORWORD); return this.FORWORD } protected lastMouseX: number = 0;...
来源: Laya_社区 发布时间: 20190224
... * 监听键盘事件 */ onUpdate(): void { var elapsedTime: number = Laya.timer.delta; if (!isNaN(this.lastMouseX) && !isNaN(this.lastMouseY) && this.isMouseDown) { Laya.InputManager.hasKeyDown(87) && this.moveForward(-this.speed * elapsedTime);//W Laya.InputManager.hasKeyDo...
来源: Laya3.0_文档 发布时间: 20251010
...位图字体的入口放到位图字体加载回调的注册之后。 Laya.timer.frameOnce(5, this, () => { //使用注册完的位图字体来创建文本 this.createText(this.texturFontName); //把注册完的位图字体绑定给UI组件,否则显示不出来位图字体 this._text.font = this....
来源: Laya2.0_文档 发布时间: 20210715
...1; } } } class GunBox{ public start(): void { // 启动定时器 Laya.timer.frameLoop( 1, this, this.loop ); } public loop():void { // 遍历BOX中所有的子对象 this._doll_role.dispose( ); } 2018-05-15 添加评论 已悬赏1元 --> 分享 微博 QZONE 微信 没有找到相关...
来源: Laya_社区 发布时间: 20180515
... if (this._spriteNum == 0) { Laya.ILaya.timer.frameLoop(3, this, this.animate); this._preFrameTime = Laya.ILaya.Browser.now(); this._frameIndex = 0; this._time = 0; this...
来源: Laya_社区 发布时间: 20220627
...te rotation: Laya.Vector3 = new Laya.Vector3(0, 0.01, 0); onStart() { Laya.timer.frameLoop(1, this, ()=> { this.cube.transform.rotate(this.rotation, false); }); } } 效果如动图4-4所示: (动图4-4) 4.1.3 3D节点的进阶使用 @property( { type :Laya.Sprite3D } ) //节点类型 public...
来源: Laya3.0_文档 发布时间: 20251010
...代码中使用 关于逻辑贞更新间隔机制、时间和其他一些Timer相关的问题 LayaAir2.61 测试版 物理引擎bug 百分百 复现 IDE通过.ui自动生成的ui代码报错 LayaAirIDE1.4版本里用TS引擎库使用view嵌套发布html5报"Uncaught TypeError:Cannot set property 'y'...
来源: Laya_社区 发布时间: 20190516