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

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

401. LayaAir和原生DOM交互(JavaScript-2D进阶篇(JS)-扩展模块) [ 69%]

...t.createElement("div"); this.qrcode = new Laya.Browser.window.QRCode(div,{ width:100, height:100 }); var url = "http://layabox.com/"; this.qrcode.makeCode(url); Laya.stage.once("click",this,clickHandler); this.qrcodeSp = new Laya.Sprite(); Laya.stage.addChild(this.qrcodeSp); function clickHandler(){...

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

402. 【解决】富文本html下划线换行bug [ 69%]

...; graphic.drawLine(words[0].x,firstlineY,words[slsIndex].x+words[slsIndex].width,firstlineY,color,1); let secondLineY = words[slsIndex+1].y + words[slsIndex+1].height; graphic.drawLine(words[slsIndex+1].x,secondLineY,lastWords.x+lastWords.width,secondLineY,color,1); }else{ graphic.drawLine(words[0]....

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

403. laya.map.TiledMap [ 69%]

... TiledMap  gridHeight : Number[read-only] 块的高度 TiledMap  gridWidth : Number[read-only] 块的宽度 TiledMap  height : int[read-only] 地图的高度 TiledMap  numColumnsGrid : Number[read-only] 地图的横向块数 TiledMap  numColumnsTile : int[read-only] 地图横向的格子...

来源: laya_api 发布时间: 20170929

404. laya.map.TiledMap [ 69%]

... TiledMap  gridHeight : Number[read-only] 块的高度 TiledMap  gridWidth : Number[read-only] 块的宽度 TiledMap  height : int[read-only] 地图的高度 TiledMap  numColumnsGrid : Number[read-only] 地图的横向块数 TiledMap  numColumnsTile : int[read-only] 地图横向的格子...

来源: Laya2.0_api 发布时间: 20190513

405. laya.display.Input [ 69%]

...read-only] 对象的显示高度(以像素单位)。 Sprite displayWidth : Number[read-only] 对象的显示宽度(以像素单位)。 Sprite drawCallOptimize : BooleanSprite  editable : Boolean 是否可编辑。 Input filters : Array滤镜集合。可以设置多个滤镜组合...

来源: Laya2.0_api 发布时间: 20190513

406. 动态加载代码后,总是出现 ProgressBar is not a constructor [ 69%]

...ete() { pBar = new ProgressBar(AssetsDir+"./assets/progressBar.png"); pBar.width = Laya.stage.width/2;//400; pBar.x = (Laya.stage.width - pBar.width) / 2; pBar.y = Laya.stage.height / 2; 。。。 }这是 progressBar 资源加载完毕之后,构造progressBar的脚本。 总是在这里出现错...

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

407. laya.display.Animation [ 69%]

...mouseThrough属性。 影响对象鼠标事件响应区域的属性width、height、hitArea,优先级顺序:hitArea(type:HitArea)>hitArea(type:Rectangle)>width/height。 Sprite mouseX : Number[read-only] 返回鼠标在此对象坐标系上的 X 轴坐标信息。 Sprite mouseY ...

来源: laya_api 发布时间: 20170929

408. 树状列表组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 69%]

...ee.xml = new Laya.XML(treeData); tree.size(300, 300); tree.x = (Laya.stage.width - tree.width) / 2; tree.y = (Laya.stage.height - tree.height) / 2; tree.bgColor = "#d25454"; this.owner.addChild(tree); } } class Item extends Laya.Box { constructor() { super(); this.right = 0; this.left = 0; var selec...

来源: Laya3.0_文档 发布时间: 20251010

409. .ui画界面关于屏幕尺寸变化时内容如何居中 [ 69%]

...自: 你在代码中添加这个UI页面的时候就让它的x=(Laya.sta.width-this.width)/2自己计算下不就好么 2018-03-23 0 2 分享 微博 QZONE 微信 什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 kaiqiw945 相关问题 【屏幕适配】在LayaAir上面...

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

410. Spine适配版(ActionScript-LayaAir基础篇(AS3)-动画基础) [ 68%]

...private var index: Number = -1; public function Main() { Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.scaleMode = Stage.SCALE_NOSCALE; Laya.stage.bgColor = "#232628"; Stat.show(); this.startFun(); } private function startFun(): void { this.templet = new SpineTempletBinary(); this.temp...

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