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

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

801. 浏览器接口 · LayaAir3.0文档 · LAYABOX [ 56%]

...浏览器信息获得。浏览器多个属性值优先级为:window.innerHeight(包含滚动条高度) > document.body.clientHeight(不包含滚动条高度) > document.documentElement.clientHeight(不包含滚动条高度),如果前者为0或为空,则选择后者。 */ static get clien...

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

802. 关于位图字体的valign属性问题 [ 56%]

...w Text(); text.size(120,80); text.font="位图字体名"; text.piovtY=text.height>>1; text.align = "center"; text.valign= "middle"; text.borderColor="#ffffff"; 上下中心不对称,左右是对的,如图   附件 : --> 2016-11-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...

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

803. 想实现正交相机多少长线,就显示多少px [ 56%]

...装的这么好了,直接将 orthographicVerticalSize设置成Laya.stage.height就能实现我所需要的效果。 2021-01-23 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起人 专注前端三十年 相关问题 ...

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

804. LayaAir开发笔记(1)五十音图连连看 [ 56%]

...txt.bold = true; txt.pos(g_stat_width - txt.width - 40, g_stat_heiht - txt.height - 20); Laya.stage.addChild(txt); txt.on(Laya.Event.CLICK, this, function(e) { switch (e.type) { case Laya.Event.CLICK: gameStart(); break; } }); //注册鼠标点击 加入一个显示得分的函数,分数由时间...

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

805. 树状列表组件 · LayaAir3.0文档 · LAYABOX [ 56%]

..., 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 selectBox: Laya.Clip = new Laya.Clip("resources/tre...

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

806. [LayaAirIDE 2.0]TextInput真机输入时显示蓝色字,求解 [ 56%]

...lse]; private init() { // 设置背景色为场景高度 this.box_color_bg.height = Laya.stage.height; } onEnable() { this.init(); // 判定是注册还是忘记密码 if (GameData.I.isReg) { this._regMode(); } else { this._forgetMode(); } // 添加取消事件 this.lb_cancel.on(Laya.Event.CLICK, th...

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

807. Starling项目需要注意哪些问题? [ 56%]

... 比如以下代码: var map:BitmapData = new BitmapData(width * scale, height * scale, false); map.perlinNoise(20*scale, 20*scale, 3, 5, false, true); var texture:Texture = Texture.fromBitmapData(map, false, false, scale); 用到了BitmapData的perlinNoise接口,这个接口Laya暂不支持,...

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

808. 分包后, 资源加载问题 [ 56%]

...gjzaUI.uiView); } loadingjzaUI.uiView={"type":"View","props":{"width":192,"height":269},"compId":1,"child":[{"type":"Image","props":{"y":0,"x":0,"skin":"loading/dt_jza_loadtuan_zj.png"}},{"type":"Box","props":{"y":0,"x":0},"child":[{"type":"Image","props":{"y":0,"x":0,"width":192,"skin":"loading/dt_...

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

809. 微信关系链:LayaAir引擎针对开发数据域使用图集支持介绍 [ 56%]

... __JS__('sharedCanvas').width = message.data.width; __JS__('sharedCanvas').height = message.data.height; var tempMatrix:Object = message.data.matrix; var matrix:Matrix = new Matrix(); matrix.a = tempMatrix.a; matrix.b = tempMatrix.b; matrix.c = tempMatrix.c; matrix.d = tempMatrix.d; Laya.stage._canv...

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

810. 如何实现渐变填充对象呀? [ 56%]

...Rect(0, 0, 500, 350, "#ffffff") drawRect(x:Number, y:Number, width:Number, height:Number, fillColor:*, lineColor:* = null, lineWidth:Number = 1):void 参数fillColor:* — 填充颜色,或者填充绘图的渐变对象 我找不到关于这个渐变对象的文档,例子或者教程 2018-09-04 ...

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