大约有 375 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0048 秒)
...的真实坐标 */ private getRealPosition(start, path): any { this.resPathLength = path.length; var minX = this.terrainSprite.minX; var minZ = this.terrainSprite.minZ; var cellX = this.terrainSprite.width / this.aStarMap.width; var cellZ = this.terrainSprite.depth / this.aStarMap.height; var halfCe...
来源: Laya3.0_文档 发布时间: 20230303
... dampingRatio; leg1.addComponentIntance(distanceJoint1); distanceJoint1.maxLength = distanceJoint1.minLength = distanceJoint1.length || distanceJoint1.joint.GetLength() * Laya.Physics.PIXEL_RATIO; let distanceJoint2 = new Laya.DistanceJoint(); distanceJoint2.otherBody = legBody2; distanceJoint2.self...
来源: Laya2.0_示例 发布时间: 20241125
...我的timer clearAll(target: any = null) { if (!target) { this.timers.length = 0; return; } var length = this.timers.length; for (var i = 0; i < length; i++) { var t: TimerLite = this.timers[i]; if (t.target == target) { t.destory(); } } } 2023-11-15 0 0 分享 微博 QZONE 微信 为什么被...
来源: Laya_社区 发布时间: 20231025
...I._event.touches == null) { return 0; } else { return this.myevent.touches.length; } } public get Touchs(): Array<any> { return this.myevent.touches } public get GetAxisX(): number { return Laya.stage.mouseX - this.lastMouseX; } public get GetAxisY(): number { return Laya.stage.mouseY - this.l...
来源: Laya_社区 发布时间: 20170714
...I._event.touches == null) { return 0; } else { return this.myevent.touches.length; } } public get Touchs(): Array<any> { return this.myevent.touches } public get GetAxisX(): number { return Laya.stage.mouseX - this.lastMouseX; } public get GetAxisY(): number { return Laya.stage.mouseY - this.l...
来源: Laya_社区 发布时间: 20190224
...is.style; var words=this._getWords(); var i=0,len=0; if (words){ len=words.length; var a; if (cssStyle){ var font=cssStyle.font; var color=cssStyle.color; if (cssStyle.stroke){ var stroke=cssStyle.stroke; stroke=parseInt(stroke); var strokeColor=cssStyle.strokeColor; graphic.fillBorderWords(words,gX...
来源: Laya_社区 发布时间: 20190611
TypeError: Cannot read property 'length' of null layaide2.4.0a场景包含预制体hero.prefab,b场景也包含预制体hero.prefab 在a场景通过Laya.Pool.getItemByCreateFun("hero", this.pHero.create, this.pHero)创建对象,同时给对象设置位置,成功 跳转到b场景后,通过Laya.Poo...
来源: Laya_社区 发布时间: 20200309
...美术资源地址数组) * aniName 动作的名称,用于生成url * length 动画最后一帧的索引值, */ private aniUrls(aniName:string,length:number):any{ var urls:any = []; for(var i:number = 0;i<length;i++){ //动画资源路径要和动画图集打包前的资源命名对应起来 u...
来源: Laya2.0_文档 发布时间: 20210715
...bel(start):start; this.loop=loop; if (this._frames && this._frames.length > 1 && this.interval > 0){ this.timerLoop(this.interval,this,this._frameLoop,null,true); } } __proto._setFramesFromCache=function(name){ if (name && Animation.framesMap[name]){ this._frames=Animat...
来源: Laya_社区 发布时间: 20161006
...on(packages,packageDic,preCode){ var tPackage; var i=0,len=0; len=packages.length; var packageCodes; packageCodes=; for(i=0;i<len;i++){ CodeManager.createTsSamePackageOne(packageCodes,packageDic[packages[i]]); } packageCodes.splice(0,0,preCode); return packageCodes.join("\n"); } CodeManager.creat...
来源: Laya_社区 发布时间: 20190531