大约有 1,873 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0080 秒)
Laya_社区(617) Laya3.0_api(529) Laya2.0_api(242) laya_api(178) Laya2.0_文档(88) Laya_示例(78) Laya3.0_文档(73) Laya2.0_示例(68)
...'... [16:24:16] 'compile' errored after 23 ms [16:24:16] Error: Invalid number at error (D:\tools\LayaAirIDE_beta2.5\resources\app\node_modules\rollup\dist\rollup.js:9402:30) at Module.error (D:\tools\LayaAirIDE_beta2.5\resources\app\node_modules\rollup\dist\rollup.js:13340:9) at tryParse (D:\too...
来源: Laya_社区 发布时间: 20200311
...: Boolean { if (this.shieldArray.indexOf(this.roleName) != -1) { var index:number=this.shieldArray.indexOf(this.roleName); console.log("找到了,位置在"+index); return true; } console.log("没找到"); return false } cuixueying • 2017-08-28 11:56 https://ask.layabox.com/que...
来源: Laya_社区 发布时间: 20170828
...现象 this.loadHp(); Laya.timer.frameLoop(1, this, this.aaa); private bb:number = 6; private playerHB:logic.UI.role.PlayerHealthBar; private loadHp():void { this.playerHB = new logic.UI.role.PlayerHealthBar(); this.playerHB.pivotX = this.playerHB.width / 2; this.playerHB.pivotY = this.playerHB.heig...
来源: Laya_社区 发布时间: 20180102
... var bone:Laya.Bone = this.mTemplete.mRootBone.findBone("头"); let angle:number = Math.atan2(Laya.stage.mouseY - (this.y - bone.transform.y), Laya.stage.mouseX - (this.x - bone.transform.x))*180/Math.PI; angle = Math.floor(angle); bone.rotation =angle; 2018-06-07 添加评论 免费帖 --> 分享 ...
来源: Laya_社区 发布时间: 20180607
...acheAsBitmap = false; this.addChild(this.itemSpr); //卡马克 for (var i: number = 0; i < 15; i++) { var attItem: HeadItem = new HeadItem; attItem.x = i * this.OFF_X; this.itemList.push(attItem); this.itemSpr.addChild(attItem); } let maskSp:Laya.Sprite = new Laya.Sprite; maskSp.graphics.drawRect...
来源: Laya_社区 发布时间: 20170913
...2-10 13:31 private function GetUser():void{ var data:Array = []; for(var m:number =0;m<1;m++){ data.push({m_label:{text:"one"}}); data.push({m_label:{text:"two"}}); data.push({m_label:{text:"three"}}); data.push({m_label:{text:"four"}}); data.push({m_label:...
来源: Laya_社区 发布时间: 20180210
...sprite: Laya.Sprite; private spine: Laya.Spine2DRenderNode; private index: number = -1; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { //加载Spine动画资源 Laya.loader.load("resources/boy/spineboy-pma.skel").then(() => ...
来源: Laya3.0_文档 发布时间: 20250104
...一直打印日志“JCGraphicsCmdDispath::calcBoundingBox Wrong command number!,cmd=-65536” 同样的代码和图片地址在web和iOS平台正常; 代码如下: /** * widget: 放置头像的父节点 * headImgUrl: 微信头像地址 */ function loadHeadImg(widget, headImgUrl) { if (!headImgU...
来源: Laya_社区 发布时间: 20171229
...BaseMaterial> 获取浅拷贝材质列表。 BaseRender sortingFudge : Number排序矫正值。BaseRenderPublic Methods Hide Inherited Public Methods Show Inherited Public Methods MethodDefined By PixelLineRenderer(owner:PixelLineSprite3D)PixelLineRenderer _renderUpdateWithCamera(context:...
来源: Laya2.0_api 发布时间: 20190513
...ist.array = data; } updateListItem(cell: BagItem, index: number):void{ console.log("3333333333333"); if (cell.useBtn.clickHandler == undefined) { cell.useBtn.on("click", this, this.onItemUse, [index]); } } ...
来源: Laya_社区 发布时间: 20170310