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

大约有 827 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0084 秒)

491. Laya.Animator没有动画播放完事件 [ 53%]

...elapsedTime=clipDuration; playState._normalizedPlayTime=1.0; if (scripts){ for (var i=0,n=scripts.length;i < n;i++) scripts[i].onStateExit(); } return; } 2019-01-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 4 个回...

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

492. [BUG]大量调用 graphics.drawCircle 导致错误 [ 53%]

[BUG]大量调用 graphics.drawCircle 导致错误 代码: for (var i = 0; i < 500; i++) { var Sprite = new Laya.Sprite(); Sprite.graphics.drawCircle(Math.random() * 500, Math.random() * 800, 50, "#666666", "#555555", 5); Laya.stage.addChild(Sprite) } 其他: Laya.init(Laya.Browser.width, Laya.B...

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

493. 图集动画(TypeScript-LayaAir基础篇(TS)-动画基础) [ 53%]

... */ private aniUrls(aniName:string,length:number):any{ var urls:any = []; for(var i:number = 0;i<length;i++){ //动画资源路径要和动画图集打包前的资源命名对应起来 urls.push("role/"+aniName+i+".png"); } return urls; } } new AtlasAniDemo(); ``` 代码运行效果如动图9所示...

来源: Laya2.0_文档 发布时间: 20210715

494. 关于安卓APK打包问题 报错 [ 53%]

...ateEvent(specialEvents[type] || 'Events'), bubbles = true     if (props) for (var name in props) (name == 'bubbles') ? (bubbles = !!props[name]) : (event[name] = props[name])     event.initEvent(type, bubbles, true) // 这行就是那个报错的那行 如何解决呢     return compatible(eve...

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

495. 请问如何给所有按钮点击事件增加一个音效 [ 53%]

...自: 可以给你的按钮声明name,譬如btn_1,btn_2。。。。通过for循环和getChildByName给你的所有按钮添加点击事件! 2017-09-26 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 l329303161 相关问题 Dialog:屏...

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

496. ReferenceError: RandomKey is not defined [ 53%]

...昨天弄了一下午都不行,然后又出现了个新问题: 我用for添加了5个按钮   和   事件  ,点击的结果全是一样的,感觉都被覆盖为最后一次循环的内容,这是为何,我把它提出来单独写个类也是一样 这是游戏界面下面的是按...

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

497. ios 过审3.1.1被拒 [ 53%]

... app by menans other than the in-app purchase API,which is not appropriate for the App Store . 我们注意到您的应用或其元数据可以通过除应用内购买API之外的其他手段购买应用中的内容,服务或功能,这不适用于App Store. 因为项目内没有接任何第三...

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

498. 设置雾化导致unity卡死 [ 53%]

...tandardcore.cginc(196) (on d3d11) Compiling Vertex program with UNITY_PASS_FORWARDBASE DIRECTIONAL LIGHTPROBE_SH FOG_LINEAR Platform defines: UNITY_ENABLE_REFLECTION_BUFFERS UNITY_USE_DITHER_MASK_FOR_ALPHABLENDED_SHADOWS UNITY_PBS_USE_BRDF1 UNITY_SPECCUBE_BOX_PROJECTION UNITY_SPECCUBE_BLENDING UNITY...

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

499. 一个panel有多种渲染选项,如何将这个数据分发给各个渲染选项类? [ 53%]

...是个剪裁的容器,没有list一样的handler函数,你自己通过for循环去修改对应item的属性值即可! cry_11858 • 2017-03-30 11:50 @cuixueying:谢谢

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

500. 教你微信小游戏使用服务端gzip数据。 [ 53%]

...r,toType)  { //转为utf8编码字符串   let  str  =  '';       for  (var  i  =  0;  i  &lt;  arr.length;  i++)  {             str  +=  String.fromCharCode(arr[i]);       }   return toType === 'json' ? JSON.parse(decodeURIComponent(escape(str))) : decodeURIComponent...

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