大约有 1,301 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0056 秒)
Laya_社区(739) Laya2.0_文档(164) Laya3.0_api(108) Laya2.0_示例(81) Laya_示例(70) Laya2.0_api(58) laya_api(54) Laya3.0_文档(27)
...tMap.createMap("res/TiledMap/orthogonal-test-movelayer.json",viewRect,Laya.Handler.create(this,this.onMapLoaded)); this.tMap.scale = 1; var ape = new Laya.Sprite(); Laya.stage.addChild(ape); ape.loadImage("res/lhg.png"); ape.pos(0, 0); 2018-05-14 添加评论 免费帖 --> 分享 微博 QZO...
来源: Laya_社区 发布时间: 20180514
...: ResourceVersion.enable( "version.json?" + Math.random(), Handler.create(this, this.onVersonLoaded)); 然而发布的游戏启动后发现加载失败,查看日志发现加载的URL拼得不对: 它加载使用的路径是一个奇怪的: http://localhost/h5/res/atlas/ui/s...
来源: Laya_社区 发布时间: 20180115
... = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.S...
来源: Laya2.0_示例 发布时间: 20251209
... x:Number = 0, y:Number = 0, width:Number = 0, height:Number = 0, complete:Handler = null) 官方文档也是这么用的:http://ldc.layabox.com/doc/?nav=zh-ts-1-3-2 我把文档的代码完整复制到vscode里,vs code会报错。IDE F6 运行也编译报错。 2020-05-22 添加评论 免费帖...
来源: Laya_社区 发布时间: 20200522
...码也被更改了 为什么官网例子里,UI组件的事件都用new Handler,而资源加载用Handler.create() 问题状态 最新活动: 2025-08-16 12:20 浏览: 356 关注: 3 人 layabox • 2025-08-15 14:45 你不能把宽高全都是全屏呀,都全屏了怎么布局?我们优化一...
来源: Laya_社区 发布时间: 20250815
...作 function showSprite() { Laya.loader.load("../src/img/testImg.png",Laya.Handler.create(this,graphicsImg)); } function graphicsImg() { //临时sprite var img = new Laya.Sprite(); //img.graphics.drawTexture(Laya.loader.getRes(("../src/img/testImg.png"),0,0)); //获取图片资源 var tex = Laya.loa...
来源: Laya_社区 发布时间: 20180413
...ite3D.load("res/scene/LayaScene_webgl_sky/Conventional/webgl_sky.lh", Laya.Handler.create(this, this.onLoadFinish)); Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.mouseDown); } onLoadFinish(layaMonkey){ this.layaMonkey=this.scene.addChild(layaMonkey); // Laya.timer.frameLoop(1, this, this.onFrameL...
来源: Laya_社区 发布时间: 20200903
...//天空盒 BaseMaterial.load("res/threeDimen/skyBox/skyBox1/skyBox.lmat", Handler.create(null, function(mat:SkyBoxMaterial):void { camera.skyboxMaterial = mat; Laya.timer.frameLoop(1, this, function():void { mat.rotation += 0.1; }); })); } 2018-10-22 0 1 分享 微博 QZONE 微信 为什么被折...
来源: Laya_社区 发布时间: 20181017
有没有SoundChannel的示例? SoundManager.playSound(_url, _loop, new Handler(this, _fn)); var channel:SoundChannel = new SoundChannel(); SoundManager.addChannel(channel); _btn.on(Event.CLICK, this, soundClick); function soundClick(evt:Event){ alert("channel.isStoped:"+channel.isStoped); if (ch...
来源: Laya_社区 发布时间: 20170116
...p://layabox.com/"; qrcode.makeCode(url); Laya.stage.once("click",this,clickHandler); qrcodeSp = new Sprite(); Laya.stage.addChild(qrcodeSp); } private function clickHandler():void { var url:String = qrcode._oDrawing._elImage.src;//获取,注意这里是异步的,开发者可以加个延时在获...
来源: Laya2.0_文档 发布时间: 20210715