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

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

81. 版本管理问题 [ 59%]

...; loadLib("libs/laya.ui.js"); loadLib("libs/laya.physics.js"); //-----libs-end------- loadLib("js/bundle.js"); 因为src下里的Main.ts里调用的管理版本器会编译成bundle.js 也是最后调用的. 导致这些库都找不到,游戏无法启动 2019-02-07 添加评论 免费帖 --> 分享 ...

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

82. matter中更换texture [ 59%]

...的texture,但是下述代码确不起作用. 能够确定的是bodyB.render.sprite.texture这个属性的值的确变了,但是不起作用,图片没变,好像没有更新. //事件回调---collisionStart Matter.Events.on(engine, 'collisionStart', function(event) { var pairs = event.pairs; //...

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

83. 如何使用h5打开本地文件的浏览窗口? [ 59%]

...cument.createElement("input")');('file.type = "file"'); ('document.body.appendChild(file)'); ('file.style.zIndex = 999999'); ('file.style.position = "absolute"'); ('file.style.top = 20'); ('document.body.appendChild(file);') [IF-SCRIPT-END]*/ 2016-02-16 0 0 分享 微博 QZONE 微信 为什么被折...

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

84. 关于LayaAir的List组件,几个问题 [ 59%]

关于LayaAir的List组件,几个问题 1.之前提过的拖到两头,END事件延迟的问题还没回复我。。 2.在滚动时再点一下可以停止滚动,但这个时候会选中我当前点的那个位置的元素。。。这个很不符合操作习惯,一般情况下只是想让它...

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

85. 如何往TiledMap格子内追加精灵 [ 59%]

...or(var sCnt = 0; sCnt < 20; sCnt++){ createSprite(sCnt) } //Create Bear End } function createSprite(no){ var flower = new Sprite(); flower.loadImage(texture1); flower.pos((0 + no) * 99.5, 73); flower.mouseEnabled=true; flower.alpha=1; flower.on(Event.CLICK,this,function() { flower.scaleX=1.1; flo...

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

86. 请问宏编译[IF-FLASH-BEGIN]是否还有效? [ 58%]

...-BEGIN]是否还有效? 为何使用了/*[IF-FLASH-BEGIN]*/ 和/*[IF-FLASH-END]*/ ,两者之间的代码在LayaIDE还是会提示有错误 2017-02-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_XS 赞同...

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

87. List滚动到底部事件 [ 58%]

... 微博 QZONE 微信 jacksing888 赞同来自:     list.scrollBar.on('end',list,scrollBarHandler)   function scrollBarHandler(){         if(this.scrollBar.value == this.scrollBar.max){                 var that = this;                 setTimeout(function(){             ...

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

88. [LayaAir3]LayaAir3.0.11 动画问题 [ 58%]

... 赞同来自: 您好,此问题已复现并定位到,应该是切换Hx2End事件派发后,切换状态之后playedTime重置计算问题,这个问题已经进行排期处理了,您可以关注下后续的日志更新。 2024-01-10 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回...

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

89. Laya 2.0 微信白名单 nativefiles 配置 [ 58%]

...("libs/laya.physics.js") [b]loadLib("libs/laya.wxmini.js") [/b]//-----libs-end------- loadLib("js/bundle.js");       if (Laya.Browser.onMiniGame) { Laya.URL.basePath = "https://*************/"; Laya.MiniAdpter.nativefiles = [ "res/ui/ui.atlas", "res/ui/png.png", "prefab", 'scene', ]; }       2...

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

90. 3D场景跳转到2D场景问题 [ 58%]

... 上面的代码: onCollisionEnter(other){ if(other.other.owner.name==="end"){ // this.owner.parent.removeSelf(); //删除自身场景 console.log(this.owner.parent) console.log(this.owner.parent.parent); //创建胜利的UI界面 let victoryScene=new VictoryScene(); Laya.stage.addChild(victorySce...

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