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

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

221. 请问laya有没有类似翻页容器(pageView)的组件? [ 42%]

...aram); let imgArray = ; for (let i = 1; i < 7; i++) { imgArray.push(`ui/bg_help_0${i}.png`) } this.list_rule.array = imgArray; } public updateItem(cell: Laya.Box, index: number): void { let img_rule = cell.getChildByName("img_rule") as Laya.Image; img_rule.skin = cell.dataSource let text_info = c...

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

222. laya.ui.TextInput [ 41%]

...Bounds方法获取。设置为true,对性能有一定影响。 Sprite  bg : AutoBitmap 表示此对象包含的文本背景 AutoBitmap 组件实例。 TextInput bgColor : String 文本背景颜色,以字符串表示。 Label blendMode : String指定要使用的混合模式。目前只支持"...

来源: laya_api 发布时间: 20170929

223. 3D场景销毁后,仍有引用存在,内存中场景及引用其的对象无法销毁 [ 41%]

...模型数据没有卸载   代码是   /* * 场景资源 */ this.m_info_bg = null; this.m_gun_root = null; this.m_complete = null;   /* * 战场数据 */ this._NormalBattleInfo = null; this._InfiniteBattleInfo = null;  this._zombie_info_obj = null;  this.m_fight_2d_root.destroy();//销毁场景...

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

224. layaUI.max.all.js 这个文件怎么生成的? [ 40%]

...urn this.uiView={"type":"View","child":[{"props":{"x":0,"y":0,"skin":"comp/bg.png","sizeGrid":"30,4,4,4","width":600,"height":400},"type":"Image"},{"props":{"x":41,"y":56,"skin":"comp/button.png","label":"点我赋值","width":150,"height":37,"sizeGrid":"4,4,4,4","var":"btn"},"type":"Button"},{"prop...

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

225. list ,增加item ,我想在末尾增加,但是每次都给我翻倍的增加,如何解决 [ 40%]

...我翻倍的增加,如何解决 _proto.room_xinxi=function(){ this.roombg=new Laya.Image($mj.Curr_Game_ImagePath + "hall/room_bg.png"); this.roombg.pos(50,150); this.addChild(this.roombg); var button = new Sprite(); button.loadImage($mj.Curr_Game_ImagePath + "hall/room_jiesan.png"); button.pos(300...

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

226. 自定义场景继承导出,会在自定义类中加入Laya.前缀导致layaMaxUI文件报错 [ 40%]

...m {     export class GmPanelUI extends Laya.Base {         public bg:Laya.Sprite;         public input:Laya.TextInput;         public btnSend:Laya.Button;         public btnClose:Laya.Button;         constructor(){ super()}         createChildren():void {  ...

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

227. laya.ui.ProgressBar [ 39%]

... Sprite  bar : Image[read-only] 获取进度条对象。 ProgressBar  bg : Image[read-only] 获取背景条对象。 ProgressBar blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite bottom : Number 从组件底边到其内容区域底边之间的垂直距离(...

来源: laya_api 发布时间: 20170929

228. 报无法找到资源,未升级ide之前不报错 [ 39%]

...{ let resArr: Array<any> = [ { url: "resources/UI/images/dsgame/bgImage2.jpg", type: Laya.Loader.IMAGE }, { url: "resources/UI/images/dsgame/index_bg.jpg", type: Laya.Loader.IMAGE }, { url: "resources/UI/images/dsgame/say_right2.png", type: Laya.Loader.IMAGE }, { ...

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

229. laya.ui.ProgressBar [ 39%]

... Sprite  bar : Image[read-only] 获取进度条对象。 ProgressBar  bg : Image[read-only] 获取背景条对象。 ProgressBar blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite bottom : Number 从组件底边到其内容区域底边之间的垂直距离(...

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

230. 用laya自带的ui编辑器 编辑了一个ui界面,怎么加载啊? 怎么写代码让这个ui界面, 在程序运行时,显示出来啊? [ 37%]

...urn this.uiView={"type":"View","child":[{"props":{"x":0,"y":0,"skin":"comp/bg.png","sizeGrid":"30,4,4,4","width":600,"height":400},"type":"Image"},{"props":{"x":41,"y":56,"skin":"comp/button.png","label":"点我赋值","width":150,"height":37,"sizeGrid":"4,4,4,4","var":"btn"},"type":"Button"},{"prop...

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