大约有 1,491 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0059 秒)
Laya_社区(917) Laya2.0_文档(193) Laya_示例(125) Laya2.0_示例(101) Laya3.0_api(79) Laya3.0_文档(72) laya_api(2) Laya2.0_api(2)
...LL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; var scene = Laya.stage.addChild(new Laya.Scene()); //与3d场景的不同是添加了vr相机 var vrCamera = scene.addChild(new Laya.VRCamera(0.03, 0, 0, 0.1, 100)); vrCamera.transform.translate(new Laya.Vector3(0, 0.1, 10)); vrCamera.clearFlag = L...
来源: Laya_示例 发布时间: 20251209
...装(相当耗费内存) mArmature = mFactory.buildArmature(1); Laya.stage.addChild(mArmature); mArmature.pos(mStartX, mStartY); // mArmature.scale(0.5, 0.5); mArmature.on(Event.STOPPED, this, this.completeHandler); this.play(); this.changeSkin(); Laya.timer.loop(1000, this, this.changeSkin); } chang...
来源: Laya2.0_示例 发布时间: 20251209
...= Laya.loader.getRes(monkey2Str); this.ape = new Laya.Sprite(); Laya.stage.addChild(this.ape); this.ape.pivot(55, 72); this.ape.pos(Laya.stage.width / 2, Laya.stage.height / 2); this.switchTexture(); this.ape.on(Laya.Event.CLICK, this, this.switchTexture); } switchTexture() { let monkey = (this.flag...
来源: Laya2.0_示例 发布时间: 20251209
...e.width, Laya.stage.height); logger.text = "等待响应...\n"; Laya.stage.addChild(logger); } function onHttpRequestError(e) { console.log(e); } function onHttpRequestProgress(e) { console.log(e) } function onHttpRequestComplete(e) { logger.text += "收到数据:" + hr.data; } })();module laya { ...
来源: Laya_示例 发布时间: 20251209
...e.width, Laya.stage.height); logger.text = "等待响应...\n"; Laya.stage.addChild(logger); } onHttpRequestError(e) { console.log(e); } onHttpRequestProgress(e) { console.log(e); } onHttpRequestComplete(e) { logger.text += "收到数据:" + hr.data; } } new Network_POST();module laya { import Sta...
来源: Laya2.0_示例 发布时间: 20251209
...e.width, Laya.stage.height); logger.text = "等待响应...\n"; Laya.stage.addChild(logger); } function onHttpRequestError(e) { console.log(e); } function onHttpRequestProgress(e) { console.log(e) } function onHttpRequestComplete(e) { logger.text += "收到数据:" + hr.data; } })();module laya { ...
来源: Laya_示例 发布时间: 20251209
...e.width, Laya.stage.height); logger.text = "等待响应...\n"; Laya.stage.addChild(logger); } onHttpRequestError(e) { console.log(e); } onHttpRequestProgress(e) { console.log(e); } onHttpRequestComplete(e) { logger.text += "收到数据:" + hr.data; } } new Network_GET();module laya { import Stag...
来源: Laya2.0_示例 发布时间: 20251209
...{ sp = new Particle2D(settings); sp.emitter.start(); sp.play(); Laya.stage.addChild(sp); sp.x = Laya.stage.width / 2; sp.y = Laya.stage.height / 2; } })();module laya { import Stage = Laya.Stage; import Loader = Laya.Loader; import Particle2D = Laya.Particle2D; import ParticleSetting = Laya.Particle...
来源: Laya_示例 发布时间: 20251209
...{ sp = new Particle2D(settings); sp.emitter.start(); sp.play(); Laya.stage.addChild(sp); sp.x = Laya.stage.width / 2; sp.y = Laya.stage.height / 2; } })();module laya { import Stage = Laya.Stage; import Loader = Laya.Loader; import Particle2D = Laya.Particle2D; import ParticleSetting = Laya.Particle...
来源: Laya_示例 发布时间: 20251209
...sePickingScene.super(this); this.camera = new Laya.Camera(0,0.1,100); this.addChild(this.camera); this.camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; this.skyBox = new Laya.SkyBox(); this.camera.sky = this.skyBox; this.skyBox.textureCube = Laya.TextureCube.load("skyBox/skyCube.ltc"); this.camera....
来源: Laya_社区 发布时间: 20170323