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

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

351. 提交一个MovieClip的BUG [ 55%]

...te var ani_planet:MovieClip;         private function onBtnClick(e:Event):void {             ani_planet = new MovieClip();             ani_planet.pivotY = ani_planet.pivotX = 350;             ani_planet.x = Laya.stage.width/2;             ani_p...

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

352. Sprite-切换纹理 [ 55%]

....width / 2, Laya.stage.height / 2); this.switchTexture(); this.ape.on(Laya.Event.CLICK, this, this.switchTexture); } switchTexture() { let monkey = (this.flag = !this.flag) ? monkey1Res : monkey2Res; this.ape.graphics.clear(); this.ape.graphics.drawTexture(monkey, 0, 0); this.ape.size(monkey.width, ...

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

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

..._jiesan.png"); button.pos(300, 0); this.roombg.addChild(button); button.on(Event.MOUSE_DOWN, this, function (e) { list.addItem(1); }); function Item() { Item.__super.call(this); this.size(416, 270); this.text = new Text(); this.text.fontSize = 20; this.text.pos(12, 5); this.text.color = "#FF00FF"; t...

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

354. laya.ui.ComboBox [ 55%]

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

来源: laya_api 发布时间: 20170929

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

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

356. laya.events.Keyboard [ 55%]

...All Classes | Index | Frames No Frames KeyboardConstants Packagelaya.eventsClasspublic class KeyboardInheritanceKeyboard Object Keyboard 类的属性是一些常数,这些常数表示控制游戏时最常用的键。 Public Constants ConstantDefined By  A : int = 65[static] 与 A 键的键...

来源: laya_api 发布时间: 20170929

357. laya.events.Keyboard [ 55%]

...All Classes | Index | Frames No Frames KeyboardConstants Packagelaya.eventsClasspublic class KeyboardInheritanceKeyboard Object Keyboard 类的属性是一些常数,这些常数表示控制游戏时最常用的键。 Public Constants ConstantDefined By  A : int = 65[static] 与 A 键的键...

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

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

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

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

359. 刮刮卡效果实现 [ 54%]

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

360. Uncaught TypeError: Cannot read property 'props' of undefined [ 54%]

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