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

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

441. Laya多点触控是有开关吗 为什么多点触控没有任何反应 [ 76%]

...        camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false);                      //创建平行光         let directionLight = scene.addChild(new Laya.DirectionLight());         //设置平行光颜色         directionLight.color =...

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

442. laya.html.dom.HTMLDivElement_API3.0 [ 76%]

...s文件来当style使用,比如: style支持的属性如下: italic:true|false; 是否是斜体 bold:true|false; 是否是粗体 letter-spacing:10px; 字间距 font-family:宋体; 字体 font-size:20px; 字体大小 font-weight:bold:none; 字体是否是粗体,功能同bold color:#ff0000; 字体...

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

443. 天空-天空盒 [ 76%]

...0, 0.8, 1.5)); camera.transform.rotate(new Laya.Vector3( -30, 0, 0), true, false); camera.addComponent(CameraMoveScript); camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; //天空盒 var skyBox = new Laya.SkyBox(); camera.sky = skyBox; skyBox.textureCube = Laya.TextureCube.load("../../res/threeDime...

来源: Laya_示例 发布时间: 20251209

444. 性能统计面板 [ 76%]

...,LayaNative下面 Stat统计的sprite数量不准,误将sprite.visible=false的对像也统计进去了,网页端就没有问题 view 设置为false之后是不是不在占用性能 两个面板发布生成的ui代码在同一个文件类中。 spine性能问题 渲染性能实例问题 问题...

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

445. list点击label保留一种状态 [ 76%]

... for(var i = 0;i < 10;i++){ data.push({ bgColor:{color:'#f3d9b4'}, type:false }) } record_slide_list.array = data; record_slide_list.selectEnable=true; record_slide_list.selectHandler = new Handler(this, onSelect,[record_slide_list]); record_slide_list.renderHandler = new Handler(this, onRender);...

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

446. 资源版本问题 [ 76%]

...url: "res/atlas/human.atlas" }], Laya.Handler.create(this, progress, null, false), null, Laya.Loader.ATLAS) } function progress() { (function loading() { Laya.loader.load([{ url: "icon/背包宝石UI.png" }, { url: "icon/交易所UI.png" }, { url: "res/atlas/0.atlas" }, { url: "res/atlas/1.atlas" },...

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

447. wordWrap=true 不生效 [ 75%]

... anchor锚点设置不生效 将list里的scrollBar设置mouseWheelEnable=false后过一段时间设置mouseWheelEnable=true;无法滚动 设置visible=false部分界面不生效? 设置音乐音量不能立即生效 请问在微信小游戏里面如何知道用户是否焦点在游戏里面? La...

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

448. laya.utils.FontInfo [ 75%]

...eFontInfo ObjectPublic Properties PropertyDefined By  _bold : Boolean = falseFontInfo  EMPTY : FontInfo[static] FontInfo  _family : String = ArialFontInfo  _font : String = 14px ArialFontInfo  _id : uintFontInfo  _italic : Boolean = falseFontInfo  _size : int = 14FontInfoPublic Method...

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

449. Dialog的onOpened是如何使用的? [ 75%]

...view页面的button dialog通过UIConfig设置UIConfig.closeDialogOnSide = false后,点击外面依旧会关闭弹窗 怎么在一个界面上通过按钮打开另一个Dialog呢? Dialog限制拖动区域有什么方法 dialog切换页面后,再切换回来不再弹出了 Dialog 设置closeDia...

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

450. 两个小问题 [ 75%]

...板可正常打开;若在关闭时设成 this.destroy() 或 this.destroy(false),新面板打开时会报错 cannot read property 'xxx' of null。请问 this.removeSelf() 是否能将面板相关的资源占用完全清除,或有什么更好的方法?请指教! 2、在主文件中引入类...

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