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

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

291. 列表组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 55%]

...temRender = Item; list.repeatX = 1; list.repeatY = 4; list.x = (Laya.stage.width - Item.WID) / 2; list.y = (Laya.stage.height - Item.HEI * list.repeatY) / 2; // 设置List的垂直滚动 list.scrollType = Laya.ScrollType.Vertical; // 设置List的垂直滚动皮肤,不设置或者""就没有滚动...

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

292. cannot read property '1'of null [ 55%]

...ned 微信小游戏初始化报错Uncaught TypeError:Cannot read property "width" of undifined 实例碰撞体报错,Cannot read property 'btSphereShape' of undefined Laya.stage报null 做了一个最简单的显示微信子域的程序,但是报错Cannot read property 'USER_DATA_PATH' of undefi...

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

293. 位图字体的制作与使用(ActionScript-LayaAir基础篇(AS3)-文本) [ 55%]

...体中,没放空格,最好设置一个空格宽度 mBitmapFont.setSpaceWidth(10); Text.registerBitmapFont(mFontName, mBitmapFont); var txt:Text = new Text(); txt.text = "这是测试"; //设置宽度,高度自动匹配 txt.width = 250; //自动换行 txt.wordWrap = true; txt.align = "center"; ...

来源: Laya2.0_文档 发布时间: 20201114

294. TiledMap制作横板地图 报错 [ 54%]

... this.map.createMap("res/map/map.json",new Laya.Rectangle(0,0,Laya.Browser.width,Laya.Browser.height), Laya.Handler.create(this,this.onLoaded));报错的地方:laya.tiledmap.js第178行: var tImageArray=relativePath.split("/");调试显示relativePathundefined。 稍微跟踪了下,是14...

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

295. 微信小游戏利用开放域好友关系链做排行榜 [ 54%]

...         sprite.graphics.drawTexture(rankTexture,0,0,rankTexture.width,rankTexture.height);                  // console.log("再次往开放域发请求");                 // openDataContext.postMessage({                 //  cmd:2,     ...

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

296. laya.display.Animation [ 53%]

...mouseThrough属性。 影响对象鼠标事件响应区域的属性width、height、hitArea,优先级顺序:hitArea(type:HitArea)>hitArea(type:Rectangle)>width/height。 Sprite mouseX : Number[read-only] 返回鼠标在此对象坐标系上的 X 轴坐标信息。 Sprite mouseY ...

来源: laya_api 发布时间: 20170929

297. laya.display.Animation [ 53%]

...read-only] 对象的显示高度(以像素单位)。 Sprite displayWidth : Number[read-only] 对象的显示宽度(以像素单位)。 Sprite drawCallOptimize : BooleanSprite filters : Array滤镜集合。可以设置多个滤镜组合。Sprite  frames : Array 当前动画的帧...

来源: Laya2.0_api 发布时间: 20190513

298. 分享:截屏! [ 53%]

...          //初始化引擎             Laya.init(Browser.width, Browser.height,WebGL);             //设置背景颜色             Laya.stage.bgColor = "#ffcccc";             //设置舞台CLICK,该CLICK作截屏的开关,点击舞台,对舞台...

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

299. LayaAir和原生DOM交互(ActionScript-2D进阶篇(AS3)-扩展模块) [ 53%]

...ser.document.createElement("div"); qrcode= new Browser.window.QRCode(div,{ width : 100, height : 100 }); var url:String ="http://layabox.com/"; qrcode.makeCode(url); Laya.stage.once("click",this,clickHandler); qrcodeSp = new Sprite(); Laya.stage.addChild(qrcodeSp); } private function clickHandler():...

来源: Laya2.0_文档 发布时间: 20210715

300. 资源加载 · LayaAir3.3 · 引擎文档 · LAYABOX [ 53%]

...去下载Meta(json)文件 [key: string]: any; } TextureConstructParams { width?: number, height?: number, format?: TextureFormat, mipmap?: boolean, canRead?: boolean, sRGB?: boolean, } TexturePropertyParams { wrapModeU?: number, wrapModeV?: number, filterMode?: FilterMode, anisoLevel?: number, premu...

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