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

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

1631. ShaderPass介绍(ActionScript-3D基础(AS3)-LayaAir3D之shader) [ 32%]

...yaMonkey.meshRenderer.sharedMaterial = customMaterial; //开启旋转 Laya.timer.frameLoop(1, this, function() { layaMonkey.transform.rotate(this.rotation, false); }); })); ``` ![](img/1.gif) ### 2. stateMap 在 `subShader` 添加通道时,除了顶点着色器与片段着色器之外,还有第...

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

1632. 3D寻路 · LayaAir3.0文档 · LAYABOX [ 31%]

...通过Tween来执行角色位置改变的 //开启定时重复执行 Laya.timer.loop(40, this, this.loopfun); private loopfun(): void { //resPath,角色需要移动的每个世界坐标位置数组 if (this.resPath && this.index < this.resPathLength) { //AStar寻路位置 this._position...

来源: Laya3.0_文档 发布时间: 20230303

1633. Laya中Button等组件lose skin的问题 [ 30%]

...es(url);         if (content !=null){             Laya.timer.frameOnce(1,null,function(){                 progress && progress.runWith(1);                 complete && complete.runWith(content);                 _$this...

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

1634. ShaderPass介绍(JavaScript-3D基础(JS)-LayaAir3D之shader) [ 30%]

...yaMonkey.meshRenderer.sharedMaterial = customMaterial; //开启旋转 Laya.timer.frameLoop(1, this, function() { layaMonkey.transform.rotate(this.rotation, false); }); })); ``` ![](img/1.gif) ### 2. stateMap 在 `subShader` 添加通道时,除了顶点着色器与片段着色器之外,还有第...

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

1635. HTTP通信 · LayaAir3.3 · 引擎文档 · LAYABOX [ 29%]

... (progress == 100) { this.logger.text = `当前下载进度: 100%\n`; Laya.timer.clear(this, this.onHttpRequestProgress); console.log("加载进度完成,清除进度事件帧听"); } } /** * 请求完成时触发的响应回调 * @param e 事件对象 */ private onHttpRequestComplete(e: any = nul...

来源: Laya3.0_文档 发布时间: 20251010

1636. 动画状态机 · LayaAir3.3 · 引擎文档 · LAYABOX [ 28%]

...态 this.animator.crossFade("Run", 0.1); //等待动画播放完成 Laya.timer.frameLoop(1,this,()=>{ //如果当前播放state已经播放完了一次 if(this.animator.getControllerLayer(0).getCurrentPlayState().normalizedTime >= 1){ //回到站立状态 this.animator.crossFade("Stand", 0.1);...

来源: Laya3.0_文档 发布时间: 20251010

1637. 【简单跑酷--JS版】---Lv.2 类之间的引用以及背景滚动实现 [ 27%]

...理函数,用于背景位置的更新,实现背景滚动效果。 Laya.timer.frameLoop(1, this, this.onLoop) } _proto.onLoop = function(){ //移动 this.x -= 5; this.moveX = Math.abs(this.x); //当背景1向左移动出游戏的显示区域 1600,则将背景1的x轴坐标,向右移动 1600*2. ...

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

1638. 预制体模块 · LayaAir3文档 · LAYABOX [ 27%]

...少,为了本地看效果延迟一秒,真实项目不需要延迟 Laya.timer.once(1000, this, () => { //跳转到入口场景 Laya.Scene.open("Scenes/Index.ls"); //不要使用Laya.Scene.open("./Scenes/Index.ls"); }); }); // 侦听加载失败 Laya.loader.on(Laya.Event.ERROR, this, this.onErr...

来源: Laya3.0_文档 发布时间: 20241014

1639. 预制体 · LayaAir3.3 · 引擎文档 · LAYABOX [ 27%]

...少,为了本地看效果延迟一秒,真实项目不需要延迟 Laya.timer.once(1000, this, () => { //跳转到入口场景 Laya.Scene.open("Scenes/Index.ls"); //不要使用Laya.Scene.open("./Scenes/Index.ls"); }); }); // 侦听加载失败 Laya.loader.on(Laya.Event.ERROR, this, this.onErr...

来源: Laya3.0_文档 发布时间: 20251105

1640. 基础文本 · LayaAir3.3 · 引擎文档 · LAYABOX [ 27%]

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