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

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

361. 批量销毁释放内存(ActionScript-3D基础(AS3)-LayaAir3D的内存管理) [ 54%]

...gory=3d&group=Resource&name=GarbageCollection)) ```typescript function(e:Event):void { _castType++; _castType %= 2; switch (_castType) { case 0: (e.target as Button).label = "释放显存"; loadScene(); break; case 1: (e.target as Button).label = "加载场景"; if (_scene)//_scene不为空表示...

来源: Laya2.0_文档 发布时间: 20210715

362. 自动布局容器 [ 54%]

...单指一个组件的话,可以做,譬如list,你可以监听一个Event.RESIZE事件,你可以通过Broswer.width和Browser.height判断出此时是横屏还是竖屏,然后动态的修改list的rotation即可! asdf131 • 2017-04-07 21:41 回复不可以加图片啊,我编辑了上...

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

363. XMLRequest在layaNative下请求崩溃,请求官方协助! [ 54%]

...id {         let hr = new Laya.HttpRequest();         hr.once(Laya.Event.COMPLETE, this, (e: any): void => {             callback(JSON.parse(hr.data));         });       hr.send(url, JSON.stringify(data), 'post', 'text', ['content-type', 'application/json;charset=UTF-8', "ses...

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

364. tiledMap场景切换问题 [ 54%]

...troy() 150*****745 • 2018-06-05 12:06 我用的是Laya.stage.on(Laya.Event.CLICK, this, function (e) {}),请问怎么销毁,销毁以后到下一个页面要重新绑定事件吗? Laya_Aaron • 2018-06-05 14:56 @150*****745:你的代码不给我讲我很难找到你说的这段,stage ...

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

365. 批量销毁释放内存(TypeScript-3D基础(TS)-LayaAir3D的内存管理) [ 54%]

...3d&group=Resource&name=GarbageCollection)) ```typescript function(e:Laya.Event):void { this._castType++; this._castType %= 2; switch (this._castType) { case 0: (e.target as Button).label = "释放显存"; this.loadScene(); break; case 1: (e.target as Button).label = "加载场景"; if (this._scene...

来源: Laya2.0_文档 发布时间: 20210715

366. laya.ui.CheckBox [ 54%]

...ll Classes | Index | Frames No Frames CheckBoxProperties | Methods | Events Packagelaya.uiClasspublic class CheckBoxInheritanceCheckBox Button UIComponent Sprite Node EventDispatcher Object CheckBox 组件显示一个小方框,该方框内可以有选中标记。 CheckBox 组件还可以显...

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

367. 微信小游戏内TextInput不能实现只输数字的功能 [ 54%]

... this.addChild(input); input.width = 100; input.height = 50; input.on(Laya.Event.BLUR, this, e=>{ let str = input.text.split(''); for (let i = 0; i < str.length; i++) { let isNotNumber = true; for (let j = 0; j < 10; j++) { if (str[i] == j.toString()) { isNotNumber = false; break; } } if (i...

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

368. laya.ui.ComboBox [ 54%]

...ll Classes | Index | Frames No Frames ComboBoxProperties | Methods | Events Packagelaya.uiClasspublic class ComboBoxInheritanceComboBox UIComponent Sprite Node EventDispatcher Object ComboBox 组件包含一个下拉列表,用户可以从该列表中选择单个值。 Public Properties Hide...

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

369. 特效LOADED监听不到 [ 53%]

特效LOADED监听不到 能给具体点吗新手 ani.once(Laya.Event.LOADED,null,function(ani1){ console.log(ani1.getGraphicBounds()); }); 这样写的话监听不到 现在引擎支持下载功能吗??? 2017-06-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...

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

370. list组件改变位置后在改变数据源的长度,会导致index超过数据源长度 [ 53%]

...享 微博 QZONE 微信 Laya_Aaron 赞同来自: private onClick(e: Laya.Event) {     this._data = [1];   this.list.array = this._data; this.list.y = 220; this.list.height = 300;   }   代码这么写就好了 2019-09-19 0 1 分享 微博 QZONE 微信 Laya新用户 赞同来自: 这2行换位...

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