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

大约有 3,617 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0083 秒)

3361. [LayaAirIDE3]咋么实现鼠标点击角色移动 [ 44%]

... private playMcClip(clipPath: string): void { this.iceMonsterAni.visible = true; this.iceMonsterAni.play(0, false, clipPath); // 0=起始帧 false=不循环 clipPath=动画资源路径 this.iceMonsterAni.once(Laya.Event.COMPLETE, this, () => { this.iceMonsterAni.visible = false; }); } } 你看看...

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

3362. convert3DCoordTo2DScreenCoord 当3dcamera有旋转的情况下,转换出来的坐标不正确 [ 44%]

... 0, 150)); _camera3d.clearColor = null; _camera3d.orthographicProjection = true; _camera3d.transform.rotationEuler = new Vector3(Tools.A2R(-30), Tools.A2R(45)); 当3dcamera有旋转的情况下, Utils3D.convert3DCoordTo2DScreenCoord转换出来的坐标对不上 2016-12-26 添加评论 免费帖 ...

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

3363. 人物行走图动画 [ 44%]

...Texture)。      load(url:String, type:String = null, cache:Boolean = true):void 加载资源。 Laya.loader.load(AniConfPath, Handler.create(this, createAnimation), null, Loader.ATLAS);   这里的load只有三个参数,而事实上用到4个,不清楚。。。   还有ani.index = 1;我...

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

3364. 关于Tween类多个对象同时缓动的时候过一段时间会不同步 [ 44%]

...addChild(tempItem); tempItem.x=i*100; tempItem.y=200; tempItem.setAnimated(true); arr.push(tempItem); // this.playAni(tempItem,new Point(0,-20),0); } }   然后这是itemUI类里的方法 private var animate:Boolean; public function setAnimated(b:Boolean):void { animate=b if(animate) { startAnimate...

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

3365. 如何自定义Shader(ActionScript-3D基础(AS3)-LayaAir3D之shader) [ 44%]

...初始化自己的Shader。 ```typescript ........ Laya.alertGlobalError = true; //初始化自定义Shader this.initShader(); //激活资源版本控制,版本文件由发布功能生成 Laya.ResourceVersion.enable("version.json", Laya.Handler.create(this, this.onVersionLoaded), Laya.ResourceVers...

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

3366. 对游戏中各种控件字体样式使用“白鹭style”样式表 [ 44%]

... void 0) && (priority = 1); (cache === void 0) && (cache = true); var itemCount = arr.length; var loadedCount = 0; var totalSize = 0; var items = ; var success = true; for (var i = 0; i < itemCount; i++) { var item = arr[i]; if ((typeof item == 'string')) item = {url: item, type: ...

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

3367. Laya2.0导入protobufjs第三方库,报错找不到文件 [ 44%]

...buf.ClimbingTowerInfoProto = pCls.create(); p.curId = 10; p.isSecondPass = true;   用了第三方库protobufjs。 protoAll.d.ts是proto打包出来的proto类文件,在vscode中TS项目测试过可以正常使用。  我已经生成出js和.d.ts代码了,在vscode里可以正常运行。laya...

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

3368. Ease.elasticOut如何自定义参数,直接设置的话会变成number [ 44%]

...ollBar设置mouseWheelEnable=false后过一段时间设置mouseWheelEnable=true;无法滚动 自定义场景类导出layaMaxUI.ts有前缀导致报错 问题状态 最新活动: 2018-04-08 17:45 浏览: 993 关注: 4 人 he853066732 • 2018-04-08 17:45 可是如何把后面新加的参数传进去...

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

3369. LayaAir3D中的Transform变换(JavaScript-3D基础(JS)-LayaAir3D图形系统基础概念) [ 44%]

...)); //旋转摄像机 camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); ``` 关于旋转,在Transform3D中提供了两种旋转接口,一种是角度/弧度旋转`rotate`,还一种是欧拉角旋转`localRotationEuler:Vector3`。 ![](img/1.png)(图1) ​ 为了方便观察效...

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

3370. laya.d3.core.material.PBRStandardMaterial_API3.0 [ 44%]

...esource.lock Defined in laya/resource/Resource.ts:103 是否加锁,如果true为不能使用自动释放机制。 Optional name name: string Inherited from Resource.name Defined in laya/resource/Resource.ts:105 名称。 renderQueue renderQueue: number Inherited from Material.renderQueue Defined i...

来源: Laya3.0_api 发布时间: 20231115