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

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

1551. ProgressBar属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 48%]

...stage.width - this.progressBar.width) / 2; this.progressBar.y = Laya.stage.height / 2; this.progressBar.sizeGrid = "5,5,5,5"; this.progressBar.changeHandler = new Handler(this, this.onChange); Laya.stage.addChild(this.progressBar); Laya.timer.loop(100, this, this.changeValue); } private changeValue(...

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

1552. Animation 使用疑问 [ 48%]

...aniBody.getBounds();         this.aniBody.pivot(bound.width / 2, bound.height / 2);         if (direction < 0) {             this.aniBody.scaleX = -1;         } else {             this.aniBody.scaleX = 1;         }     } 每改变一个方向CurMern都爆涨50M这样...

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

1553. textinput(type=password)手机打开华为安全键盘后,无法关闭(官网的例子) [ 48%]

...;     var SPACING = 100;     var INPUT_WIDTH = 300;     var INPUT_HEIGHT = 50;     var Y_OFFSET = 50;     var skins;     (function()     {         // 不支持WebGL时自动切换至Canvas         Laya.init(800, 600, WebGL);         Laya.stage.alignV = Stage.AL...

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

1554. [LayaAir3]Laya3.0 中设置舞台背景透明无效 [ 48%]

...       this.iframe.style.width = "100%";         this.iframe.style.height = "100%"         this.iframe.style.border = "none";         this.iframe.style.zIndex=-1     }   那我有一个需求,想将document 元素 层级设置为-1,任看得见,该如何实现呢 2024-03-05 0...

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

1555. 如何使sprite基于浏览器底部定位,而不是基于舞台底部定位,设置bottom等于0似乎是基于舞台的,但是舞台超出后还是看不到,我需要基于浏览器定位的方法 [ 48%]

...1005945485 • 2017-11-16 23:13 获取浏览器的高度,是Laya.Browser.height吧,我把这个值赋给精灵后,还是因为超出而看不到,因为精灵的位置也是相对舞台的,而舞台底部是超出了屏幕的,所以精灵还是被挡住了,我被这问题难住好几天...

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

1556. 向TiledMap中的对象层中的矩形框添加精灵,不显示 [ 48%]

...est-movelayer.json", new Rectangle(0, 0, Laya.stage.width, Laya.stage.height), Handler.create(this,onLoadedMap)); } private var sp:Sprite; private function onLoadedMap():void { var mapLayer:MapLayer=tiledMap.getLayerByIndex(2); sp=new Sprite(); sp.graphics.drawRect(0,0,100,100,"#FF0000&quo...

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

1557. TiledMap制作横板地图 报错 [ 48%]

...("res/map/map.json",new Laya.Rectangle(0,0,Laya.Browser.width,Laya.Browser.height), Laya.Handler.create(this,this.onLoaded));报错的地方为:laya.tiledmap.js第178行: var tImageArray=relativePath.split("/");调试显示relativePath为undefined。 稍微跟踪了下,是141行在初始化tTi...

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

1558. 头条/微信/OPPO/vivo/趣头条/百度 等渠道发布 [ 48%]

... graphics.drawTexture(shareTexture, 0, 0, shareTexture.width, shareTexture.height); 下一行报错: Uncaught TypeError: this.bitmap.activeResource is not a function 2020-05-28 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 星夜 相关...

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

1559. list只能显示一个图片 [ 48%]

...this.data; this.list1.x = 50; this.list1.y = 500; this.list1.getChildAt(0).height = 100; this.list1.vScrollBarSkin = ""; this.list1.hScrollBarSkin = "comp/hscroll.png"; this.list1.renderHandler = new Laya.Handler.create(this,this.onRenderList); this.list1.selectHandler = new Laya.Handler.create(this...

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

1560. QQ玩一玩打包问题 [ 48%]

...l; charset=utf-8"> <br> <p style="margin:0;font-size:20px;line-height:24px;margin-bottom: 20px"> package log. version: 1.6<br> unzip:/data/apollo_game_pkg//pkg/20180709/1021/2809_src.zip<br> unzip done...<br> /data/apollo_game_pkg/pkg/20180709/1021/cmshow_game_2809&l...

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