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

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

211. 求助 Uncaught SyntaxError: Unexpected identifier [ 43%]

...w Vector4(1.3, 1.3, 1.3, 1); material.diffuseTexture = Texture2D.load("res/bg.png"); plane.meshRender.material = material; //生成坐标中心,其实是球体 var sphere = scene.addChild(new MeshSprite3D(new SphereMesh(0.05,100,100))) as MeshSprite3D; var material = new StandardMaterial(); materi...

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

212. List翻页效果怎么实现 [ 43%]

...am); 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_社区 发布时间: 20181112

213. laya 的list组件,如果有多页信息,怎么实现翻页丫?? [ 43%]

...am); 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_社区 发布时间: 20180724

214. UI-RefreshList [ 42%]

... = Laya.Event; Box = Laya.Box; List = Laya.List; Handler = Laya.Handler; WebGL = Laya.WebGL; Animation = Laya.Animation; Label = Laya.Label; Text = Laya.Text; Point = Laya.Point; Tween = Laya.Tween; TextArea = Laya.TextArea; class UI_RefreshList { constructor() { this.baseBox = null; this.refreshLoa...

来源: Laya2.0_示例 发布时间: 20240930

215. 分享:DrawToCanvas内存释放问题! [ 42%]

...() { Laya.init(Browser.width, Browser.height);//引擎初始化 Laya.stage.bgColor = "#ffcccc";//背景颜色 Stat.show();//显示帧频,用于观察Curmem变化 //添加被截屏对象 sp= new Sprite(); sp.loadImage("bg2.png"); Laya.stage.addChild(sp); //创建DrawToCanvas命令按钮 var btnDraw...

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

216. 请问ts版本下的Combobox组件,下拉框层级问题,是不打算改了吗? [ 42%]

...法点击了 romeo211 • 2017-04-25 22:47 let img = new Laya.Image('comp/bg.png'); let cbx = new Laya.ComboBox('comp/combobox.png', 'label1,label2'); cbx.selectedIndex = 0; let dialog = new Laya.Dialog(); dialog.addChild(img); dialog.addChild(cbx); dialog.popup(); romeo211 • 2017-04-25 22:48 这...

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

217. 请问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

218. laya.ui.TextInput [ 41%]

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

来源: laya_api 发布时间: 20170929

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

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