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

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

811. 树状列表组件 · LayaAir3.3 · 引擎文档 · 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_文档 发布时间: 20251010

812. 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

813. HTMLElement的contextHeight算出来和实际的高度是不一样的,为什么? [ 55%]

HTMLElement的contextHeight算出来和实际的高度是不一样的,为什么? 如题 2017-07-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 sleepfish 赞同来自:  - -找到问题了。后面改过文...

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

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

...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

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

... __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

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

...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

817. 分包后, 资源加载问题 [ 55%]

...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

818. sprite添加texture后,sprite无法触发点击事件? [ 55%]

...aaron • 2017-08-26 17:23 利用getBounds获取的时候发现sprite是有height和width的,为什么还要设置size呢?

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

819. 游戏引导 原来使用 blendMode = "destination-out"; 现在怎么用? [ 55%]

...的问题 this.mask.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#000000");

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

820. 新手!谁懂得把下面两个文件转成layaair可以运行的代码 [ 55%]

....TextFormat;     import flash.utils.Timer;       [SWF(width = "1000", height = "618", backgroundColor = "0x0", frameRate = "30")]       public class iLoader extends Sprite     {         public static var PATH:String = "";           public static var VCM:Function;           pu...

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