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

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

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

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. 分包后, 资源加载问题 [ 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

814. 如何实现渐变填充对象呀? [ 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

815. 微信关系链: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

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

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

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

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

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

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

818. 绘制能力 · LayaAir3.3 · 引擎文档 · LAYABOX [ 56%]

...m y 开始绘制的 Y 轴位置。 * @param width 矩形宽度。 * @param height 矩形高度。 * @param fillColor 填充颜色,或者填充绘图的渐变对象。 * @param lineColor (可选)边框颜色,或者填充绘图的渐变对象。 * @param lineWidth (可选)边框宽度。 *...

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

819. List 组件做的手风琴Demo [ 55%]

...         if(this.index_num ==index){             cell.height=80;             cell.y =index*30;             //显示图片          img2.visible =true;           }else         {         // 大于点击索引时 所有的Box...

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

820. [LayaAir2] 在使用videoDom创建视频元素后iPad跟iPhone中位置不一样 [ 55%]

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