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

大约有 1,491 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0059 秒)

201. VR场景-VR地球 [ 87%]

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

202. 骨骼动画-换装 [ 87%]

...装(相当耗费内存) 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

203. Sprite-切换纹理 [ 87%]

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

204. 网络和格式-POST [ 86%]

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

205. 网络和格式-POST [ 86%]

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

206. 网络和格式-GET [ 86%]

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

207. 网络和格式-GET [ 86%]

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

208. 粒子-粒子演示2 [ 86%]

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

209. 粒子-粒子演示3 [ 86%]

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

210. Cannot read property 'toDefault' of undefined报错是什么原因 [ 86%]

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