大约有 908 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0055 秒)
Laya_社区(457) Laya2.0_示例(91) Laya_示例(88) Laya2.0_文档(74) Laya3.0_api(63) Laya2.0_api(58) laya_api(54) Laya3.0_文档(23)
...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
... 比如以下代码: 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
...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
...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
... __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
...的问题 this.mask.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#000000");
来源: Laya_社区 发布时间: 20180713
...aaron • 2017-08-26 17:23 利用getBounds获取的时候发现sprite是有height和width的,为什么还要设置size呢?
来源: Laya_社区 发布时间: 20170826
...m y 开始绘制的 Y 轴位置。 * @param width 矩形宽度。 * @param height 矩形高度。 * @param fillColor 填充颜色,或者填充绘图的渐变对象。 * @param lineColor (可选)边框颜色,或者填充绘图的渐变对象。 * @param lineWidth (可选)边框宽度。 *...
来源: Laya3.0_文档 发布时间: 20251010
... if(this.index_num ==index){ cell.height=80; cell.y =index*30; //显示图片 img2.visible =true; }else { // 大于点击索引时 所有的Box...
来源: Laya_社区 发布时间: 20190522
...= new Laya.Texture2D(videoTexture.video.videoWidth,videoTexture.video.videoHeight); var texture:Laya.Texture = new Laya.Texture(texture2D); var image:Laya.Image = new Laya.Image(); image.texture = texture; image.width = videoTexture.video.videoWidth; image.height = videoTexture.video.videoHeight; im...
来源: Laya_社区 发布时间: 20240305