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

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

221. 分享:IDE使用SWF动画的销毁与反复创建 [ 70%]

...      {             //加载swf图集资源,只需要加载image.json即可,具体结构请参考附件             Laya.loader.load([{url: "res/atlas/flicker/image.json", type: Loader.ATLAS}], Handler.create(this, onLoaded));         }         private function ...

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

222. 有没方法可以读到图集里面的文件大小信息? [ 70%]

...什么 如果用的是sprite 只能用getbounds()去获取 如果用的是image 直接就可以获取图片的宽高 如果两种方法都不想用的话 那只能自己去加载json文件了 2018-01-29 0 1 分享 微博 QZONE 微信 qian 赞同来自: http://layaair.ldc.layabox.com/api/?category=Co...

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

223. 列表组件 · LayaAir3.0文档 · LAYABOX [ 70%]

...被称为子项模板(Item Template)。子项模板内可以放Label、Image等组件。 滚动条可以设置垂直滚动条或水平滚动条,还可以两者同时设置。 1.2 创建List 1.2.1 添加List组件 如图1-1所示,可以在层级窗口中右键进行创建,也可以从小部...

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

224. UI编辑器问题!!!! [ 70%]

...有个问题。,。。 就是我本来是用 left 和 bottom 布局的 image .. 随便拖动一下 就变成了 x y ,,, 能不能改成 本来是什么布局的 拖动就变成什么?? 现在用 编辑器做 相对布局 的 UI 好麻烦。。。~!!!!! 2017-01-13 添加评论 免费...

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

225. 复杂UI类卸载 [ 70%]

...杂UI类卸载 class GameUI extends View{ container:Laya.Sprite; img1:Laya.Image; anim1:Laya.Animation; ... }, 类似这样的复杂UI类,里面包含了各种类型的组件,当需要卸载GameUI类的时候,gameUI.removeSelf();gameUI.destroy(true);gameUI = null ,用这种方式是否可行?(...

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

226. 弹窗视图组件 · LayaAir3.0文档 · LAYABOX [ 70%]

...plete(e: any = null): void { this.dialog = new Laya.Dialog(); let bg: Laya.Image = new Laya.Image(this.assets[0]); this.dialog.addChild(bg); let button: Laya.Button = new Laya.Button(this.assets[1]); button.name = Laya.Dialog.CLOSE; button.pos(this.DIALOG_WIDTH - this.CLOSE_BTN_WIDTH - this.CLOSE_BT...

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

227. 列表里的元素可以播放动画吗 [ 70%]

...新时接收并更改单元格属性              var hero:Image = cell.getChildByName("hero")as Image;//根据名字查找要更改的单元格              hero.disabled = HostData.array[index].hero;//属性更改              var ani :Animation = c...

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

228. ???????? 为啥加一个 Text,drawcall 暴增? [ 70%]

...?? 为啥加一个 Text,drawcall 暴增? fish.scoreItem = new Laya.Image(); fish.scoreItem.skin = "assets/ui_imgs/icon_00313.png"; fish.scoreItem.sizeGrid = '0,10,0,10'; var price = this.getFishVal('10001', 3); var length = String(price).length; var w = length * 16 + 15 + 40; fish.scoreItem....

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

229. laya.ui.ScrollType_API3.0 [ 70%]

... border-radius: 0; min-width: 310px; background-color: #1A1A1A; background-image: none; border: none; } #laya_content { width: 100%; height: auto; margin: 0px auto 0 auto; } @media (max-width: 767px) { #laya_content { overflow: auto; margin: 0px auto 0 auto; padding: 0; } } 版本: 分类 类索...

来源: Laya3.0_api 发布时间: 20230115

230. laya.ui.ISelect_API3.0 [ 70%]

... border-radius: 0; min-width: 310px; background-color: #1A1A1A; background-image: none; border: none; } #laya_content { width: 100%; height: auto; margin: 0px auto 0 auto; } @media (max-width: 767px) { #laya_content { overflow: auto; margin: 0px auto 0 auto; padding: 0; } } 版本: 分类 类索...

来源: Laya3.0_api 发布时间: 20230115