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

大约有 2,666 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0079 秒)

851. DialogUI,在内部按钮监听事件没效果是引擎设定?还是我用法错误? [ 70%]

...个按钮,confirm, cancel, 在InputTxtDialog 类里面cancel_btn.on(Event.CLICK, this, this.onCancel));没有反映,但是在调用InputTxtDialog的地方InputTxtDialog.cancel_btn.on(Event.CLICK, this, this.onCancel));是没有问题的,同样的代码,粘出来就行,在里面就不...

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

852. 有没有SoundChannel的示例? [ 70%]

...undChannel = new SoundChannel(); SoundManager.addChannel(channel); _btn.on(Event.CLICK, this, soundClick); function soundClick(evt:Event){ alert("channel.isStoped:"+channel.isStoped); if (channel.isStoped){ channel.play(); }else{ channel.stop(); } } channel.isStoped输出是:undefined 2017-01-16 ...

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

853. Animation动画鼠标点击事件不起作用? [ 70%]

...机按钮*/         private var m_btn_auto:Button;   m_mc_trade.on(Event.CLICK,this,onBtnClick); m_btn_auto.on(Event.CLICK,this,onBtnClick); 我有设置了点击事件了,但在点击事件onBtnClick内console.log('s')没有打印出来。而挂机按钮的就可以打印得到。这是怎...

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

854. 求助keypress 和keydown事件为什么传递的keycode不一样的 [ 70%]

...问题 关于遍历产生的sprite的点击事件,急,大神帮看哈 event自定义事件的问题 点击事件不起效 遮罩点击事件 为什么给Sprite容器添加点击事件没反应 图片添加点击事件 有的不生效 鼠标滚轮滚动事件 问题状态 最新活动: 2018-05-18...

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

855. 把 hr.http.timeout 设置后,如果超时没消息返回 [ 70%]

...1 个回复 Monica - 知识达人 赞同来自: 有错误的消息返回(Event.ERROR),没有超时的.... 2017-10-16 0 3 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 KGYGPS 相关问题 IOS系统内嵌H5游戏,退到后台,等几...

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

856. 报错 Laya 的标识符中重复 [ 70%]

...码: (function() { var Sprite = Laya.Sprite; var Stage = Laya.Stage; var Event = Laya.Event; var Browser = Laya.Browser; var WebGL = Laya.WebGL; var animation =Laya.Animation; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(600,300); Laya.stage.scaleMode = "showall"; Laya.stage.b...

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

857. 3D粒子现在支持Render Mesh吗? [ 70%]

...js:31462)     at Loader._onHierarchylhLoaded (laya.d3.js:31477)     at EventHandler.runWith (laya.core.js:999)     at Loader.event (laya.core.js:1038)     at Loader.complete (laya.core.js:18719)     at Loader.onLoaded (laya.core.js:18675)     at EventHandler.runWith (laya.core.js:997)  ...

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

858. Laya tiledmap 监听事件未响应 [ 70%]

...stPrior = true;         Laya.stage.focus = _mapSprite;         let event = _mapSprite.on(Laya.Event.CLICK, this, () => {             LogUtil.w("响应点击事件")         })     }   尝试使用focus 好像也没有响应 请问大佬们能解答一下吗 附件 : --> 2022-...

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

859. 请问怎么把arraybuffer作为图片显示出来 [ 70%]

...行的   求大神帮忙 let xhr = new Laya.HttpRequest(); xhr.once(Laya.Event.COMPLETE, this, this.completeHandler); xhr.once(Laya.Event.ERROR, this, this.errorHandler); xhr.send("https://ask.layabox.com/static ... ot%3B, "", "get", "arraybuffer"); private completeHandler(data: ArrayBuffer) { //...

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

860. laya.d3.terrain.Terrain [ 70%]

...All Classes | Index | Frames No Frames TerrainProperties | Methods | Events Packagelaya.d3.terrainClasspublic class TerrainInheritanceTerrain Sprite3D Node EventDispatcher Object Terrain 类用于创建地块。 Public Properties Hide Inherited Public Properties Show Inherited Public Properti...

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