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

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

391. HttpRequest问题 [ 60%]

...2打开控制台报错是什么 15818760256 • 2018-02-08 14:19 send(url: string, data?: any, method?: string, responseType?: string, headers?: Array<any>): void; 这个发送的时候加入header,header里面的key-value如果key是固定的命名吗?如果value值是"Access-Control...

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

392. Laya怎么使用雪碧图(spritesheet)? [ 60%]

...wf",...] var b:Array = ; for (var i:int = 0; i < a.length; i++) { var s:String = a; var u:String = s.substr(0, s.length - 4);//去掉.swf后缀 var o1:Object = { url:u + "/sheet.js?v=" + config.version, type:ResLoader.TXT, size:1}; var o2:Object = { url:u + "/sheet.png?v=" + config.version, type:...

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

393. 背景音乐文件太大 播放延迟 [ 60%]

...e)         })       public static playBackGroundMusic(urlstring, start: number) {         if (soundMsg.isPlayingBgMusic) {             let path = "remote/music/" + url + '.mp3';             Laya.SoundManager.playMusic(path, 1, new Laya...

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

394. laya.ui.UIGroup [ 60%]

...获取。设置为true,对性能有一定影响。 Sprite blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite bottom : Number 从组件底边到其内容区域底边之间的垂直距离(以像素为单位)。 Component cacheAs : String 指定显示对象是...

来源: laya_api 发布时间: 20170929

395. laya.ui.Button [ 60%]

...获取。设置为true,对性能有一定影响。 Sprite blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite bottom : Number 从组件底边到其内容区域底边之间的垂直距离(以像素为单位)。 Component cacheAs : String 指定显示对象是...

来源: laya_api 发布时间: 20170929

396. laya.ui.DialogManager [ 60%]

...获取。设置为true,对性能有一定影响。 Sprite blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite cacheAs : String 指定显示对象是否缓存为静态图像,cacheAs时,子对象发生变化,会自动重新缓存,同时也可以手动调用...

来源: laya_api 发布时间: 20170929

397. laya.ui.ComboBox [ 60%]

...获取。设置为true,对性能有一定影响。 Sprite blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite bottom : Number 从组件底边到其内容区域底边之间的垂直距离(以像素为单位)。 Component  button : Button[read-only] 获取对...

来源: laya_api 发布时间: 20170929

398. laya.ui.UIGroup [ 60%]

...法获取。设置为true,对性能有一定影响。 Sprite bgColor : String背景颜色Box blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite bottom : Number 从组件底边到其内容区域底边之间的垂直距离(以像素为单位)。 UIComponent ...

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

399. 教你微信小游戏使用服务端gzip数据。 [ 60%]

... =  0;  i  <  arr.length;  i++)  {             str  +=  String.fromCharCode(arr[i]);       }   return toType === 'json' ? JSON.parse(decodeURIComponent(escape(str))) : decodeURIComponent(escape(str)); } //转换成byte  function fromCharCode(pakoData,toType = 'json'){   let ...

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

400. laya.ui.VBox [ 60%]

...archy : Boolean[read-only] 获取在场景中是否激活。 Node align : String 子对象对齐方式。LayoutBox alpha : Number透明度,值为0-1,默认值为1,表示不透明。更改alpha值会影响drawcall。Sprite anchorX : NumberX锚点,值为0-1,设置anchorX值最终通过piv...

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