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

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

421. 图集动画播放问题 [ 72%]

图集动画播放问题 this.ded.play(0, false); this.ded.on(Laya.Event.COMPLETE, this, this.onHitOver);  播放完 "ded" 动画后, 有时候会出现延迟,没有立即运行onHitOver()方法,有什么解决办法吗? 2018-11-01 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...

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

422. Uncaught TypeError: Game.super is not a function [ 72%]

... not a function var Game = (function(_super){ function Game() { Game.super(this); } Laya.ClassUtils(Game,"Game",_super) return Game; })(ui.GameUI) 2017-10-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Monica -...

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

423. 安卓和iPhone的触控差异 [ 72%]

...一边滑动一边施放技能 写法如下: stage.on(Event.MOUSE_DOWN, this, onMouseDown); private function onMouseDown(e:Event = null):void { var touches:Array = e.touches; if (touches) { moveX = touches[0].stageX stage.on(Event.MOUSE_MOVE, this, onMouseMove) } } private function onMouseMove(e:E...

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

424. 请问老师为什么我按照官网的实例播放音频没反应呢? [ 72%]

...undButton.y; Laya.stage.addChild(musicButton); soundButton.on(Event.CLICK, this, onPlaySound); musicButton.on(Event.CLICK, this, onPlayMusic); } function createButton(label) { var w = 110; var h = 40; var button = new Sprite(); button.size(w, h); button.graphics.drawRect(0, 0, w, h, "#FF7F50"); butt...

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

425. 关于下拉列表的选择触发 [ 72%]

关于下拉列表的选择触发 this.small_map.selectHandler = new Laya.Handler(this, onSelect_small); this.big_map.selectHandler = new Laya.Handler(this, onSelect_big); function onSelect_small(e) { Laya.big_switch = 0 Laya.maptype = "small" this.now_map.text = "当前地图:" + this.small_map....

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

426. 微信小游戏默认项目代码添加unity导出.lh文件,微信开发工具提示错误 [ 72%]

...ge.SCREEN_NONE; //开启统计信息 // Laya.Stat.show(); //添加3D场景 this.scene = Laya.stage.addChild(new Laya.Scene()) as Laya.Scene; //添加照相机 this.camera = (this.scene.addChild(new Laya.Camera(0, 0.1, 100))) as Laya.Camera; this.camera.transform.translate(new Laya.Vector3(0, 3, 3));...

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

427. 学习官方视频教程中飞机大战游戏出现的问题!! [ 72%]

...大战游戏出现的问题!! 在鼠标控制飞机移动时,写成this.hero.pos(Laya.stage.mouseX, Laya.stage.mouseY);是没有用的,可以看到hero容器的坐标变化了,但是机身显示还在原地并未移动, 但如果设置this.hero.aniBody.pos(Laya.stage.mouseX, Laya.stage.m...

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

428. addchild后,怎么去引用? [ 72%]

...引用,应该怎么去引用呢? 代码如下:listP是一个UI页面. 用this.lost1,空对象,但是用this._childs[5]是可以的 var lose1=new Laya.Animation(); lose1.loadAnimation("lose_1.ani"); lose1.x=150; lose1.y=400; lose1.size(100,300); lose1.on(Laya.Event.CLICK,this.listP,this.play1); lose1...

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

429. loadScene()如何获取到资源异步加载是否完成的事件? [ 72%]

...源异步加载是否完成的事件? protected onCreate(): Laya.View { this.RootPanel = new ui.test.gameLayerUI(); console.log(this.RootPanel.my_laya.width); // this.RootPanel.on(Laya.Event.RENDER,this,this.bindEvent); return this.RootPanel; }说明:这是一个框架下用来创建界面的cre...

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

430. 怎样监听list里的组件 [ 72%]

...ist(name 为list_box),我想监听里面name为select_img ,我写的 this.list_box.getChildByName("select_img").on 报错  on is not a function ?    2018-07-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回...

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