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

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

1041. Laya ide 1.83 导出apk 加载场景失败 [ 64%]

...nd.alone.version/lib ... 189:61) 05-18 09:55:36.987: I/0(27649):     at EventHandler.__proto.runWith (http://stand.alone.version/libs/laya.core.js:726:27) 05-18 09:55:36.987: I/0(27649):     at ResInfo.__proto.event (http://stand.alone.version/libs/laya.core.js:494:28) 05-18 09:55:36.987: I/0(...

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

1042. 请问UI之间的场景切换要怎么写 [ 64%]

...(_super){ function sg_sign(){ sg_sign.super(this); this.btn_wxsign.on(Laya.Event.CLICK,this,this.onWxSign); this.reset(); } Laya.class(sg_sign,"sg_sign",_super); var _proto = sg_sign.prototype; _proto.reset = function(){ Laya.SoundManager.playMusic('res/sound/sign_bgm.mp3',0); } _proto.onWxSign = fu...

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

1043. 参照技术文档自定义Shader写的TypeScript版本,运行后 Sprite 显示尺寸不对,帮忙看下哪里要调整? [ 64%]

...uv不一致)   有方法可以解决,但比较麻烦, 1. 监听laya.events.Event.RECOVERED,监听纹理合并结束的消息,再创建custom sprite 2. 关闭纹理的自动图集合并   如果想看到正常的图片,可以修改一下代码 在你的sprite中,把uv设置修改为te...

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

1044. httpRequest send返回Request failed Status:0 [ 64%]

...quest(); var url = "http://thirdqq.qlogo.cn/g%3Fb% ... 3B%3B xhr.once(Laya.Event.COMPLETE, this, this.completeHandler, [url, 1]); xhr.once(Laya.Event.ERROR, this, this.errorHandler); xhr.send(url, "", "get", "arraybuffer"); } } GameMain.prototype.completeHandler = function (URL, id, data) { // priva...

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

1045. meshRender修改材质问题 [ 64%]

...file:///E:/LayaWorkspace/javaScriptLaya/bin/libs/laya.core.js:12723:28) at EventHandler.__proto.runWith (file:///E:/LayaWorkspace/javaScriptLaya/bin/libs/laya.core.js:713:27) at ResInfo.__proto.event (file:///E:/LayaWorkspace/javaScriptLaya/bin/libs/laya.core.js:483:28) at LoaderManager.__proto._end...

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

1046. ReferenceError: Loader is not defined 搞不懂引擎原生的也会报这个错? [ 64%]

...veControl);  //点击提示文字,开始游戏 this.label_start.on(Laya.Event.CLICK, this, this.onTipClick); //this._loveControl.startGame();  //点击重置按钮,重新开始 this.button_reset.on(Laya.Event.CLICK, this, this.onClickReset);  let partPath = "res/aixin_bao.part"; Laya.loader.l...

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

1047. 简单粒子效果,发布成单机版apk在移动端安装运行,结果显示不出来 [ 64%]

...proto.onAssetsLoaded (http://www.xxx.com/LayaUISample.max.js:440)     at EventHandler.__proto.run (http://www.xxx.com/LayaUISample.max.js:702)     at ResInfo.__proto.event (http://www.xxx.com/LayaUISample.max.js:495)     at LoaderManager.__proto._endLoad (http://www.xxx.com/LayaUISample.max.js...

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

1048. 基础文本 · LayaAir3.3 · 引擎文档 · LAYABOX [ 64%]

...xt.borderColor = "#fa1515"; this.txt.overflow = "scroll"; this.txt.on(Laya.Event.MOUSE_DOWN, this, this.startScrollText); } /* 开始滚动文本 */ startScrollText() { prevX = this.txt.mouseX; prevY = this.txt.mouseY; Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.scrollText); Laya.stage.on(Laya.E...

来源: Laya3.0_文档 发布时间: 20251010

1049. 用最新版本的IDE开发,用AS语言开发,用HttpRequest加载图片报错,用JS语言开发却可以加载 [ 64%]

...p:Sprite = new Sprite(); var xhr:HttpRequest = new HttpRequest(); xhr.once(Event.COMPLETE,this,completeHandler); xhr.once(Event.ERROR,this,errorHandler); xhr.send("res/monkey2.png","","get","arraybuffer"); } private function completeHandler(data:Object):void { //加载完成返回的data是arraybuff...

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

1050. Sprite3D-Sprite3D加载 [ 63%]

...mport laya.d3.resource.models.Mesh; import laya.display.Stage; import laya.events.Event; import laya.resource.Texture; import laya.utils.Handler; import laya.utils.Stat; import common.CameraMoveScript; public class Sprite3DLoad { public function Sprite3DLoad() { Laya3D.init(0, 0, true); Laya.stage.s...

来源: Laya_示例 发布时间: 20251218