大约有 1,154 项符合查询结果, 库内数据总量为 30,902 项。 (搜索耗时: 0.0057 秒)
Laya_社区(863) Laya3.0_api(80) Laya2.0_文档(72) Laya_示例(52) Laya2.0_示例(48) Laya3.0_文档(35) laya_api(2) Laya2.0_api(2)
移除鼠标事件 btn.on(Event.MOUSE_MOVE, this, onMouseMove); 如何移除btn的该鼠标事件 2017-06-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自: on用来侦听事件,off用...
来源: Laya_社区 发布时间: 20170623
...。 代码很简单,附件为复现工程,具体代码在GameUiTest.js this.imaAudioLocal.on(Laya.Event.CLICK, this, ()=>{ let resUrl = "res/audio/sound_click.wav"; Laya.SoundManager.playSound(resUrl, 1); }); this.imaAudioNet.on(Laya.Event.CLICK, this, ()=>{ let resUrl = "https://具体...
来源: Laya_社区 发布时间: 20200225
...序报错window.focus is not a function 调用动画结束on方法,报错this.zombieAnimator.on is not a function laya加载unity插件导出的场景 physics3D is not a function 用微信开发者调试的时候出现document.createTextNode is not a function api readFile success callback function...
来源: Laya_社区 发布时间: 20170602
..., "../../res/ui/checkbox (6).png"]; Laya.loader.load(skins, Handler.create(this, onCheckBoxSkinLoaded)); })(); function onCheckBoxSkinLoaded() { var cb; for (var i = 0; i ; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; L...
来源: Laya_示例 发布时间: 20250221
...出屏的事件? Laya.stage.on(Laya.Event.MOUSE_OUT, this, function(){console.log("mouseout")}); Laya.stage.on(Laya.Event.MOUSE_UP, this, function(){console.log("mouseup")}); mouseup能正常监听到,stage上加的MOUSE_OUT事件,当鼠标移出屏...
来源: Laya_社区 发布时间: 20200407
.../LayaMonkey/LayaMonkey.lh")); layaMonkey.once(Laya.Event.HIERARCHY_LOADED, this, function () { layaMonkey.transform.localScale = new Laya.Vector3(3, 3, 3); //转换2D屏幕坐标系统到3D正交投影下的坐标系统 camera.convertScreenCoordToOrthographicCoord(pos, _translate); layaMonkey.transf...
来源: Laya_示例 发布时间: 20250221
... function ListItemRender() { var label = null; ListItemRender.__super.call(this); this.size(100, 20); label = new Label(); label.fontSize = 12; label.color = "#FFFFFF"; this.addChild(label); this.setLabel = function(value) { label.text = value; } } Laya.class(ListItemRender, "ListItemRender", Box); ...
来源: Laya_示例 发布时间: 20250221
...</span><br/>"; // 添加超链接跳转 my_html.on(Event.LINK,this,onLink); // 点击btn1 send_btn.on(Event.CLICK,this,onSendClick); // 点击btn2 send_btn1.on(Event.CLICK,this,onSendClick1); // enter键发送默认字体或输入框内字体 Laya.stage.on(Event.KEY_DOWN,this,onKeyDown);...
来源: Laya_社区 发布时间: 20170107
....5.2 and section 3.3.2 of the Apple Developer Program License Agreement. This code, combined with a remote resource, can facilitate significant changes to your app’s behavior compared to when it was initially reviewed for the App Store. While you may not be using this functionality currently, it...
来源: Laya_社区 发布时间: 20171221
...在设置监听是如下写的: class a {_EventMgr.on("xxx", () => {this.xxx();}); } _EventMgr是一个全局的监听类,在class a中设置监听并处理,但我删除这个a的实例并重新创建,发现触发事件时,处理函数会调用2次,再删除在创建a,会触发处...
来源: Laya_社区 发布时间: 20171012