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

大约有 584 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0040 秒)

121. Laya.Handler.create 回调 [ 76%]

...1, [anim])); onStartOver1(bads: Array<any>): void { alert("1" + bads.length) var animsf :Laya.Animation = bads[0] as Laya.Animation; animsf.play(); } 这样用会报错 2017-03-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接...

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

122. laya接入fairyGUI的时候资源加载方式? [ 76%]

...sKey.split("/"); let pkg: any = fgui.UIPackage.getByName(urlNames[urlNames.length - 1]); if (!pkg) { let descData: any = Laya.loader.getRes(resKey + "." + fgui.UIConfig.packageFileExtension); if (!descData) { this.onComplete(resKey, otherLoadData, complete, progress, loadData); return; } pkg = fgui....

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

123. laya.physics.joint.DistanceJoint_API3.0 [ 76%]

...dy Accessors awaked damping destroyed enabled frequency hideFlags id joint length maxLength minLength Methods _initialize _setOwner destroy hasHideFlag onAdded onAwake onDestroy onDisable onEnable onLateUpdate onPostRender onPreRender onReset onStart onUpdate Constructors constructor new DistanceJoi...

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

124. 2.7.1 enbug: cannon碰撞trigger的enter和exit频繁触发 [ 76%]

..._simulate(deltaTime)函数的  this._btDiscreteDynamicsWorld.callBackBody.length = 0;                 this._btDiscreteDynamicsWorld.allContacts.length = 0; 这两句就正常了 附件 : --> 2020-08-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已...

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

125. list 下 生成图片模糊 [ 76%]

...: function (cell, idx) { var data = this.bigList.array; if (idx >= data.length) { return; } cell.removeChildren(); var root = cell.getChildByName('root'); if (!root) { root = new Sprite(); root.pos(0, 0); root.name = "root"; cell.addChild(root); } 。。。。。 生成的 图片 从一个场景...

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

126. as3字符串截取int的问题 [ 76%]

...{ DConfig.gamrRoomEnterPower=value; console.log(DConfig.gamrRoomEnterPower.length); console.log(DConfig.gamrRoomEnterPower); for (var i=0;i < DConfig.gamrRoomEnterPower.length;i++){ DConfig.gamrRoomEnterPower=int(DConfig.gamrRoomEnterPower[i]); } });[/i] 2017-07-31 添加评论 免费帖 --> 分...

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

127. List组件 repeat(x/y)设置问题 [ 76%]

......         var repeatY = Math.ceil(GameManager.instance.serverList.length / 3); // 此处算出来实际为1         this.serverList.repeatY = repeatY; ...... 但是直接设,是可以的:   // this.serverList.repeatY = 1; 2016-09-02 添加评论 免费帖 --> 分享 微博 QZONE...

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

128. 设置Label的text后立即设置color,color不起作用 [ 76%]

...• 2021-11-04 17:02 ok 其实只要把Graphics类的clear方法里的cmds.length = 0改为 cmds=null或者replaceTextColor方法里增加 cmds.length==0就行了 Laya_zhang • 2021-11-04 19:26 是的,这个问题下版本就会修复,感谢反馈

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

129. Laya.loader.load(xx) 当地址""的时候,会报错。 [ 76%]

...                 for (var i = 0, len = toloadPics.length; i < len; i++) {                                 if (changeType) {                                     toloadPics = folderPath + toloadPi...

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

130. 对象池的使用 [ 76%]

... nan.y =-60; this.addChild(nan); } private function delRen():void { if(arr.length){ for (var i:uint = 0; i < arr.length; i++ ){ if (arr[i].y > 800){ Pool.recover("nan", Image); } }arr[i].visible = false ; }; } 2017-12-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...

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