大约有 1,702 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0063 秒)
Laya_社区(1360) Laya3.0_api(81) Laya2.0_api(74) laya_api(69) Laya2.0_文档(43) Laya_示例(36) Laya2.0_示例(20) Laya3.0_文档(19)
...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
...yaMonkey.meshRenderer.sharedMaterial = customMaterial; //开启旋转 Laya.timer.frameLoop(1, this, function() { layaMonkey.transform.rotate(this.rotation, false); }); })); ```  ### 2. stateMap 在 `subShader` 添加通道时,除了顶点着色器与片段着色器之外,还有第...
来源: Laya2.0_文档 发布时间: 20210715
...通过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
...es(url); if (content !=null){ Laya.timer.frameOnce(1,null,function(){ progress && progress.runWith(1); complete && complete.runWith(content); _$this...
来源: Laya_社区 发布时间: 20191122
...yaMonkey.meshRenderer.sharedMaterial = customMaterial; //开启旋转 Laya.timer.frameLoop(1, this, function() { layaMonkey.transform.rotate(this.rotation, false); }); })); ```  ### 2. stateMap 在 `subShader` 添加通道时,除了顶点着色器与片段着色器之外,还有第...
来源: Laya2.0_文档 发布时间: 20210714
... (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
...态 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
...理函数,用于背景位置的更新,实现背景滚动效果。 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
...少,为了本地看效果延迟一秒,真实项目不需要延迟 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
...少,为了本地看效果延迟一秒,真实项目不需要延迟 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