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

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

301. qq小游戏网络音效无法重复播放(有复现demo) [ 76%]

...。 代码很简单,附件为复现工程,具体代码在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

302. out.writeShort is not a function [ 76%]

...序报错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

303. UI-CheckBox [ 76%]

..., "../../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_示例 发布时间: 20240930

304. 鼠标出屏事件 [ 76%]

...出屏的事件?           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

305. 照相机-正交相机 [ 76%]

.../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_示例 发布时间: 20240930

306. 缓动-缓动函数演示 [ 76%]

... 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_示例 发布时间: 20240930

307. 分享:简单聊天室 [ 76%]

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

308. 苹果上架问题, [ 76%]

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

309. 如何取消监听 [ 76%]

...在设置监听是如下写的: class a {_EventMgr.on("xxx", () => {this.xxx();}); } _EventMgr是一个全局的监听类,在class a中设置监听并处理,但我删除这个a的实例并重新创建,发现触发事件时,处理函数会调用2次,再删除在创建a,会触发处...

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

310. timeline 类动作节点回调 [ 76%]

..., alpha:1},2000,null,0); timeLine.play(0,true); timeLine.on(Event.COMPLETE,this,this.onComplete); timeLine.on(Event.LABEL, this, this.onLabel); } function onComplete() { console.log("timeLine complete!!!!"); } function onLabel(label) { console.log("LabelName:" + label); }少年 没仔细看官方的...

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