• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 1,702 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0064 秒)

1691. 基础文本 · LayaAir3.3 · 引擎文档 · LAYABOX [ 25%]

...示文本的初始化内容 } 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

1692. 3D中摄像机绕物体旋转该如何实现? [ 25%]

...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

1693. 求ShuriKenParticle3D用法 [ 25%]

...           let self = this;                 Laya.timer.loop(300, null, function () {                     console.log('8: ' + self.particleSystem.aliveParticleCount);                 });             }         }     } } ...

来源: Laya_社区 发布时间: 20170605

1694. 官方案例里摄像机绕物体旋转脚本的问题 [ 25%]

...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

1695. 使用3D精灵 · LayaAir3.3 · 引擎文档 · LAYABOX [ 24%]

... * 监听键盘事件 */ 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

1696. 位图字体的制作与使用(TypeScript-LayaAir基础篇(TS)-文本) [ 24%]

...位图字体的入口放到位图字体加载回调的注册之后。 Laya.timer.frameOnce(5, this, () => { //使用注册完的位图字体来创建文本 this.createText(this.texturFontName); //把注册完的位图字体绑定给UI组件,否则显示不出来位图字体 this._text.font = this....

来源: Laya2.0_文档 发布时间: 20210715

1697. 十几秒以后动画渲染时间变长,帧率变慢,是怎么回事? [ 24%]

...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

1698. 引擎 TiledMap 居然不支持图块翻转 [ 21%]

...        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

1699. 实体组件系统 · LayaAir3.3 · 引擎文档 · LAYABOX [ 19%]

...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

1700. dcc更新失效, 有代码, 100%复现, 三楼附临时解决办法 [ 17%]

...代码中使用 关于逻辑贞更新间隔机制、时间和其他一些Timer相关的问题 LayaAir2.61 测试版 物理引擎bug 百分百 复现 IDE通过.ui自动生成的ui代码报错 LayaAirIDE1.4版本里用TS引擎库使用view嵌套发布html5报"Uncaught TypeError:Cannot set property 'y'...

来源: Laya_社区 发布时间: 20190516