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

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

831. 在 tiledmap 插入一个精灵在上面 [ 67%]

...teMap("desert.json", new Laya.Rectangle(0, 0, Laya.stage.width, Laya.stage.height),   Laya.Handler.create(this,this.loadedMap)); }   loadedMap(){   this.sp=new Laya.Sprite();   this.sp.graphics.drawRect(0,0,100,100,"#FF0000");   var mapLayer = this.tiledMap.getLayerByIndex(1);   console.info(m...

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

832. 微信小游戏开放数据域按钮点击位置偏移 [ 67%]

...s = openDataContext.canvas sharedCanvas.width = layout.width; sharedCanvas.height = layout.height; //先清空绘制 layout.graphics.clear(false); //设置大小 var canvas = new Laya.Texture(sharedCanvas); canvas.bitmap.alwaysChange = true;//小游戏使用,非常费,每帧刷新 layout.graphic...

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

833. 微信小游戏渲染开放域卡顿处理 [ 67%]

...lf = this;             var width = self.width;             var height = self.height;             var data = {                 view: self.$viewName,                 width: width,                 height: height             };             // 赋值...

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

834. Laya2.4版本,场景为内嵌时layaMaxUI类中没有声明场景中的Button等控件? [ 67%]

...ya.Scene { public static uiView:any ={"type":"Scene","props":{"width":720,"height":1280},"compId":2,"child":[{"type":"Button","props":{"y":616,"x":296,"skin":"comp/button.png","name":"butStart","label":"label"},"compId":3}],"loadList":["comp/button.png"],"loadList3D":[]}; constructor(){ super()} cre...

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

835. 用iframe内嵌网页及适配 [ 67%]

...); //适配处理 var frameWidth = 720 * Laya.stage.clientScaleX; var frameHeight = 1280 * Laya.stage.clientScaleY; var styleStr = "position: absolute; left: {0}px; top: {1}px; z-index: 100009;";//laya 的index是100000 var str = styleStr.format((laya.utils.Browser.width - frameWidth) * 0.5, (laya.u...

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

836. 分包后, 资源加载问题 [ 67%]

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

837. 1.5.0 LayaAir IDE发布UI资源缺失! [ 67%]

...uiView',function(){return this.uiView={"type":"View","props":{"width":600,"height":400}};}         ]);         return ABCPanelUI;     })(View); var TestPageUI=(function(_super){         function TestPageUI(){                          TestPageUI.__super.call(thi...

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

838. HtmlDivElement 描边和下划线不能同时使用 [ 67%]

...同来自: 刚刚实测没问题,   代码:<div style='width:300px;height:100px;color:#ff0000;font-size:25px;font-family:SimSun;vertical-align:bottom;line-height:20px;'> <p><span style='font-weight:bold;stroke:3px; font:24px Arial' color='red' href='https://ask.layabox.com/'> ...

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

839. list中加的button不能接收点击事件 求一个list中加button的demo [ 67%]

...List;         list.width = this.itemList.width;         list.height = this.itemList.height;         list.x = this.itemList.x;         list.y = this.itemList.y;         list.spaceY = 12;         list.vScrollBarSkin = "";         list.selectEnable = tru...

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

840. Laya2.4版本,场景为内嵌时layaMaxUI类中没有声明场景中的Button等控件? [ 67%]

...   public static  uiView:any ={"type":"Scene","props":{"width":720,"height":1280},"compId":2,"child":[{"type":"Button","props":{"y":616,"x":296,"skin":"comp/button.png","name":"butStart","label":"label"},"compId":3}],"loadList":["comp/button.png"],"loadList3D":[]};         constructor...

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