大约有 911 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0046 秒)
Laya_社区(460) Laya2.0_示例(91) Laya_示例(88) Laya2.0_文档(74) Laya3.0_api(63) Laya2.0_api(58) laya_api(54) Laya3.0_文档(23)
..., 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
... 比如以下代码: 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
HTMLElement的contextHeight算出来和实际的高度是不一样的,为什么? 如题 2017-07-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 sleepfish 赞同来自: - -找到问题了。后面改过文...
来源: Laya_社区 发布时间: 20170706
...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
... __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
...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
...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
...aaron • 2017-08-26 17:23 利用getBounds获取的时候发现sprite是有height和width的,为什么还要设置size呢?
来源: Laya_社区 发布时间: 20170826
...的问题 this.mask.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#000000");
来源: Laya_社区 发布时间: 20180713
....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