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

大约有 311 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0060 秒)

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

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

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

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

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

294. 资源加载 · LayaAir3.0文档 · 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_文档 发布时间: 20230728

295. laya.display.Animation [ 53%]

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

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

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

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

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

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

298. Dialog 第一次打开总是出现在窗口右下角,这是啥,再打开就正常剧中了? [ 52%]

...:"Dialog", "selectedBox":2, "selecteID":3, "searchKey":"Dialog", "props":{"width":1624,"sceneColor":"#000000","runtime":"script/view/dialogs/SettingDialog.js","height":750}, "nodeParent":-1, "maxID":4, "label":"Dialog", "isOpen":true, "isDirectory":true, "isAniNode":true, "hasChild":true, "compId":2...

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

299. 分享一个Shader版的CoolDown实现 [ 52%]

...     vbArray = new Array<number>();                 var texWidth: number = texture.width;                 var texHeight: number = texture.height;                 //定义颜色值,取值范围0~1 浮点。                 const red: number = 1;         ...

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

300. 在微信小游戏中使用list,兼听不到mouseHandler跟selectHandler。 [ 52%]

...der = Item;   list.repeatX = 1; list.repeatY = 4;   list.x = (Laya.stage.width - WID) / 2; list.y = (Laya.stage.height - HEI * list.repeatY) / 2;   // 使用但隐藏滚动条 list.vScrollBarSkin = "";   list.selectEnable = true; list.selectHandler = new Handler(this, onSelect);   list.renderHa...

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