大约有 152 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0047 秒)
Laya_社区(88) Laya3.0_文档(20) Laya2.0_文档(17) Laya_示例(14) Laya2.0_示例(7) Laya3.0_api(4) laya_api(1) Laya2.0_api(1)
...{ var seed = Laya.timer.currTimer * 0.002; for (var i = 0, n = this.lights.length; i 加载场景,并且添加多光源 ```typescript Laya.Scene3D.load("res/threeDimen/scene/MultiLightScene/InventoryScene_Forest.ls", Laya.Handler.create(this, function (scene) { //添加到场景 Laya.stage.addChil...
来源: Laya2.0_文档 发布时间: 20210715
...oint=Laya.Point.create(); for(let index:number=0;index<this.__bindList.length;index++){ source=this.__bindList[index]; SkeletonUtils.getBoneLocalPoint(this,source.boneName,position); source.x=source.offestX+position.x; source.y=source.offestX+position.y; } } destroy(destroyChild?:boolean):void...
来源: Laya_社区 发布时间: 20190805
...------------------ */ public playRandomMove(): void { if (this.loadedClips.length > 0) { const clipPath = this.loadedClips[Math.floor(Math.random() * this.loadedClips.length)]; this.playMcClip(clipPath); } else { // 兜底:用 Animator2D 状态机 const idx = Math.floor(Math.random() * 8) + 1; ...
来源: Laya_社区 发布时间: 20251211
...Laya.timer.currTimer * 0.002; for (var i: int = 0, n: Number = this.lights.length; i 加载场景,并且添加多光源 ```typescript Scene3D.load("res/threeDimen/scene/MultiLightScene/InventoryScene_Forest.ls", Handler.create(this, function (scene: Scene3D): void { //添加到场景 Laya.stage.ad...
来源: Laya2.0_文档 发布时间: 20210714
...oveChildren(); } var cout:string = value.toString(); for(var i=0;i<cout.length;i++){ var clip: Laya.Clip = new Laya.Clip("loading/num0-9.png", 10, 1); clip.index = parseInt(cout.charAt(i)); this.hbox.addChild(clip); } var clip_perc:Laya.Clip = new Laya.Clip("loading/num_percent.png", 1, 1); this....
来源: Laya_社区 发布时间: 20180615
...ivate function onAssetsLoaded():void { for(var i:int = 0, len:int = assets.length; i < len; ++i) { var asset:Image = assets[i]; //查看log,清理前资源一直在内存中 console.log(Laya.loader.getRes(asset)); //调用清理方法 Laya.loader.clearRes(asset); //查看log,清理后,资...
来源: Laya_社区 发布时间: 20171019
...lotDisplayData; for (var i=0,n=this.skinSlotDisplayDataArr.length;i < n;i++){ tSkinSlotDisplayData=this.skinSlotDisplayDataArr[i]; tSkinSlotDisplayData.destory(); } this.skinSlotDisplayDataArr.length=0...
来源: Laya_社区 发布时间: 20190704
...发了out事件,则将其从数组移除 else { for(var i:int=0;i<arr.length;i++) { if(arr[i]==e.target.name) { arr.splice(0,1); } } } //为处于over状态的显示对象设置手型光标 if(arr.length>0) { Mouse.cursor='pointer'; } //为处于out状态的显示对象设置箭头显示 els...
来源: Laya_社区 发布时间: 20170502
... var ape:Sprite = new Sprite; ape.x=(apesCtn._childs.length)*(stageWidth/4) var bl:Number=texture.width/texture.height ape.graphics.drawTexture(texture,0,0,stageWidth/4,stageWidth/4/bl); apesCtn.addChild(ape); ...
来源: Laya_社区 发布时间: 20161023
...p(1,this,this.onEnterFrame); } private onEnterFrame():void{ if(this.points.length>0){ if(this.i<this.points.length){ this.ball.x = this.points[this.i].x; this.ball.y = this.points[this.i].y; this.i++; } } } private onClick():void{ // //角度归位 // this.angle = Math.PI; // //小球归位 th...
来源: Laya_社区 发布时间: 20171108