大约有 3,617 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0083 秒)
Laya_社区(2682) Laya3.0_api(265) Laya2.0_文档(227) Laya2.0_api(113) Laya3.0_文档(104) laya_api(98) Laya_示例(83) Laya2.0_示例(45)
... 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
... 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
...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
...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
...初始化自己的Shader。 ```typescript ........ Laya.alertGlobalError = true; //初始化自定义Shader this.initShader(); //激活资源版本控制,版本文件由发布功能生成 Laya.ResourceVersion.enable("version.json", Laya.Handler.create(this, this.onVersionLoaded), Laya.ResourceVers...
来源: Laya2.0_文档 发布时间: 20210715
... 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
...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
...ollBar设置mouseWheelEnable=false后过一段时间设置mouseWheelEnable=true;无法滚动 自定义场景类导出layaMaxUI.ts有前缀导致报错 问题状态 最新活动: 2018-04-08 17:45 浏览: 993 关注: 4 人 he853066732 • 2018-04-08 17:45 可是如何把后面新加的参数传进去...
来源: Laya_社区 发布时间: 20180104
...)); //旋转摄像机 camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); ``` 关于旋转,在Transform3D中提供了两种旋转接口,一种是角度/弧度旋转`rotate`,还一种是欧拉角旋转`localRotationEuler:Vector3`。 (图1) 为了方便观察效...
来源: Laya2.0_文档 发布时间: 20210715
...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