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

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

381. 批量销毁释放内存(JavaScript-3D基础(JS)-LayaAir3D的内存管理) [ 53%]

...gory=3d&group=Resource&name=GarbageCollection)) ```typescript function(e:Event) { 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)//_s...

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

382. 如何自定义一个类实现类似List的功能的Grid [ 53%]

...derHandler: Handler; /**单元格鼠标事件处理器(默认返回参数e:Event,index:number)。*/ mouseHandler: Handler; /**指定是否可以选择,若值为true则可以选择,否则不可以选择。 @default false*/ selectEnable: boolean; /**最大分页数。*/ totalPage: number;我想知...

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

383. 刮刮卡效果实现 [ 53%]

...guaSpr.addChild(ape); ape.loadImage("WBSign/img_guakaituceng.png"); ape.on(Event.MOUSE_MOVE, this, onMouseMove); interactionArea = new Sprite(); interactionArea.blendMode = "destination-out"; ape.addChild(interactionArea); interactionArea.graphics.clear(); } function onMouseMove(e) { if(mouseX!=0){ ...

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

384. Uncaught TypeError: Cannot read property 'props' of undefined [ 53%]

...0)     at Loader.Laya3D._onHierarchylhLoaded (laya.d3.js:15384)     at EventHandler.__proto.runWith (laya.core.js:1156)     at Loader.__proto.event (laya.core.js:911)     at Loader.__proto.complete (laya.core.js:14555)     at Loader.__proto.onLoaded (laya.core.js:14523)     at EventHandl...

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

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

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

386. 自动布局容器 [ 52%]

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

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

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

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

388. tiledMap场景切换问题 [ 52%]

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

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

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

390. laya.ui.CheckBox [ 52%]

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