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

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

1681. rigidBody.applyForce 物体不会移动 [ 31%]

...le(); this.rigidBody = this.character.getComponent(Laya.Rigidbody3D); Laya.timer.frameLoop(1, this, this.onKeyDown); //獲取照相機 var camera: Laya.Camera = littleGirl.getChildByName( "Main Camera" ) as Laya.Camera; this.camera = camera; //新增怪物 this.RandomMonster_x(); this.RandomMonster_...

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

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

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

1683. 3D寻路 · LayaAir3.0文档 · LAYABOX [ 30%]

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

1684. Laya中Button等组件lose skin的问题 [ 29%]

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

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

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

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

1686. HTTP通信 · LayaAir3.3 · 引擎文档 · LAYABOX [ 28%]

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

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

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

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

...理函数,用于背景位置的更新,实现背景滚动效果。 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

1689. 预制体模块 · LayaAir3文档 · LAYABOX [ 26%]

...少,为了本地看效果延迟一秒,真实项目不需要延迟 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

1690. 预制体 · LayaAir3.3 · 引擎文档 · LAYABOX [ 26%]

...少,为了本地看效果延迟一秒,真实项目不需要延迟 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