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

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

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

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

392. laya.ui.ComboBox [ 52%]

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

393. 特效LOADED监听不到 [ 52%]

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

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

394. 动画不显示 [ 51%]

...import laya.display.Stage;     import laya.ui.Label;     import laya.events.Event;     import laya.utils.Browser;     import laya.utils.Timer;     import laya.display.Sprite;     import laya.net.Loader;     import laya.ui.TextArea;     import laya.resource.Texture;     imp...

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

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

...享 微博 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

396. laya.ui.Tree [ 51%]

...| All Classes | Index | Frames No Frames TreeProperties | Methods | Events Packagelaya.uiClasspublic class TreeInheritanceTree Box Component Sprite Node EventDispatcher ObjectImplements IRender Tree 控件使用户可以查看排列为可扩展树的层次结构数据。 Public Properties Hi...

来源: laya_api 发布时间: 20170929

397. SoundManager第一次加载播放延迟怎么解决? [ 51%]

...r第一次加载播放延迟怎么解决? private function onPlayMusic(e:Event=null):void  {    trace("播放音乐");    SoundManager.playMusic("../../../../res/sounds/bgm.mp3", 1, new Handler(this, onComplete)); } 以上是官方的例子,但是背景音乐文件比较大的时候,会...

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

398. 区块地图-等角地图 [ 51%]

...WALL; Laya.stage.bgColor = "#232628"; this.createMap(); Laya.stage.on(Laya.Event.CLICK, this, this.onStageClick); } createMap() { const TiledMap = Laya.TiledMap, Rectangle = Laya.Rectangle, Point = Laya.Point; this.tiledMap = new TiledMap(); this.tiledMap.createMap("res/tiledMap/isometric_grass_and_...

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

399. 怎么在不同时间显示MovieClip的多个实例 [ 50%]

...var i:int; private 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_planet.load("1.swf",true); ani_planet.y = i*50; addChild(ani_planet); i++; } 以上代码执行...

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

400. laya.ui.Tree [ 50%]

...| All Classes | Index | Frames No Frames TreeProperties | Methods | Events Packagelaya.uiClasspublic class TreeInheritanceTree Box UIComponent Sprite Node EventDispatcher ObjectImplements IRender Tree 控件使用户可以查看排列为可扩展树的层次结构数据。 Public Properties ...

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